This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-11-07 11:58:29

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

HTML Help

I know I am a bonehead, eh?  tongue

FistofDeath wrote:

Is there somthing wrong with my classes? When I open the document in Chrome, all I get is a blank page.

Code:

<html>
<title>STUFF HERE</title>
<body>
<style>
background-color:#000000;
color:grey;
.mainBoxes {
border:dotted, 5px;
color: red;
background-color:webkit-gradient: #FFFFFF-#000000;
align:center
}
</style>
<div style="border:dotted, 5px;
color: red;
background-color:webkit-gradient: #FFFFFF-#000000;
align:center"/>
<strong>Welcome blahblahblah</strong>
this is where more stuff goes
</div>
<p>
<div class="mainBoxes">
<a href="blah.html">Home</a>
<p>
<a href="bleh.html">Other things</a>
<div>
<p>
lolwut
</body>

Well, that is not really my text, but you get the idea. Anyway, is there something wrong?  hmm


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#2 2012-11-07 12:04:34

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: HTML Help

Replied on Coders' Shed. Oh, you're FistofDeath, i didn't know.

Offline

 

#3 2012-11-07 12:04:51

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: HTML Help

scimonster wrote:

Replied on Coders' Shed. Oh, you're FistofDeath, i didn't know.

Oh. Yeah.  tongue


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#4 2012-11-07 12:22:32

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: HTML Help

well, there's no closing </html> tag. Could that be it?


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#5 2012-11-07 12:47:28

FistofDeath
New Scratcher
Registered: 2012-10-12
Posts: 29

Re: HTML Help

joefarebrother wrote:

well, there's no closing </html> tag. Could that be it?

OH, I forgot to copy that.

And anyway, it's fixed now.  smile

Offline

 

#6 2012-11-08 19:05:38

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: HTML Help

I'm not a wiz at HTML, but maybe it's because you don't properly end the <p> elements? You don't have any </p>, and where there's supposed to be </p>, there's a <p>, maybe that's it?
Try without the CSS, check to see if it's your HTML, or you're CSS.

Offline

 

#7 2012-11-08 19:54:21

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: HTML Help

TorbyFork234 wrote:

I'm not a wiz at HTML, but maybe it's because you don't properly end the <p> elements? You don't have any </p>, and where there's supposed to be </p>, there's a <p>, maybe that's it?
Try without the CSS, check to see if it's your HTML, or you're CSS.

It's fixed.  tongue


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#8 2012-11-08 19:56:58

GeonoTRON2000
Scratcher
Registered: 2009-12-24
Posts: 1000+

Re: HTML Help

Well, you have enough syntax errors to drown in.  Here's a fix.  Not sure if it's what you wanted exactly, but it shows up:

Code:

<html>
<head>
<title>STUFF HERE</title>
<style type="text/css">
body {
background-color:#000000;
color:grey;
}
.mainBoxes {
border:dotted, 5px;
color: red;
background-color:webkit-gradient: #FFFFFF-#000000;
align:center
}
</style>
</head>
<body>
<div style="border:dotted, 5px;
color: red;
background-color:webkit-gradient: #FFFFFF-#000000;
align:center">
<strong>Welcome blahblahblah</strong>
this is where more stuff goes
</div>
<p></p>
<div class="mainBoxes">
<a href="blah.html">Home</a>
<p></p>
<a href="bleh.html">Other things</a>
</div>
<p></p>
lolwut
</body>
</html>

Also, use <br /> instead of empty <p> tags.


http://i.imgur.com/BAEgGDL.png

Offline

 

#9 2012-11-08 19:59:59

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: HTML Help

Closed by request of the topic owner!

P.S. you don't need a slash in the  <br> tag, that's one of those things w3schools teaches wrong!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer