Same HTML code.... one's broke... though

liunx

Guest
Hello, can someone try and correct this:<br />
<br />
<html><br />
<head><br />
<title>WASSUP</title><br />
</head><br />
<body bgcolor="#99CC99" topmargin="5" bottommargin="5" leftmargin="5" rightmargin="5"><br />
<font color="#FF9933" face="arial" size="-1><br />
<br />
<table border="1"><br />
<tr><br />
<td>Cell 1</td><br />
<td>Cell 2</td><br />
</tr><br />
</table><br />
<br />
<table border="1"><br />
<tr><br />
<td>Cell 1</td><br />
<td>Cell 2</td><br />
</tr><br />
</table><br />
<br />
<br />
<br />
<br />
</body><br />
</html><br />
<br />
How come the top one's orange and has no tables and the bottom on the the right one? The code is the exact same.<!--content-->You need a closing quote for the size attribute of your font element:<br />
<font color="#FF9933" face="arial" size="-1"> <br />
<br />
Note that the font element is deprecated (no longer recommended) in HTML 4.0. (It was never properly a part of HTML 3.2 either - it's a Netscape invention.)<br />
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html32.html#font">http://www.w3.org/TR/REC-html32.html#font</a><!-- m --><br />
<br />
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/font.asp">http://msdn.microsoft.com/workshop/auth ... s/font.asp</a><!-- m --><br />
<br />
<!-- m --><a class="postlink" href="http://www.mcsr.olemiss.edu/~mudws/font.html">http://www.mcsr.olemiss.edu/~mudws/font.html</a><!-- m --><!--content-->You'll need to close off your font tag, too, ssbroli. <br />
<br />
<html><br />
<head><br />
<title></title><br />
</head><br />
<body><br />
<font><br />
<table></table><br />
<table></table><br />
</font><br />
</body><br />
</html><br />
<br />
As for the deprecations, don't worry about it. You'll have plenty of time to learn the basics before all the browser creators agree on what's acceptable and what isn't. One step at a time. You're doing just fine.<br />
<br />
Peg<!--content-->
 
Back
Top