jomothepure
11-25-2008, 10:29 PM
Hi,
I'm really sorry to burst in like this. Have just come across the forum in a search, and will give it some in depth browsing tomorrow!
I was wondering if any kind souls could take pity on me and help out with a couple of snags I'm hitting with validating the html of a web page? I'm afraid I'm a total novice, not to mention clutz, and so am completely useless at adressing the problems the validator chucks at me, so any advice gratefully received!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Test</TITLE>
<body bgcolor=white text=black link=black alink=black vlink=black>
</HEAD>
<font face="verdana">
<center>
<table width=800 cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=7 height=100 valign=bottom align=left><font size=6>test.com</font></td></tr>
<tr>
<td width=199 bgcolor=gray align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=199 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td></tr>
<tr><td colspan=7 height=2></td></tr>
<tr>
<td width=199 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=199 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td></tr></table>
<table width=800 cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=3 height=12></td></tr>
<tr><td width=199 height=400 valign=top align=left>
some
links<br>
will<br>
go<br>
here<br>
when<br>
they need<br>
to be<br>
added<br>
</td><td width=2 height=400></td><td width=599 height=400 valign=top align=left>
Welcome to my website. I am having problems because I am an idiot and can't work out what's stopping my code being validated! If anyone can help me I'd be very grateful!
</td></tr>
<tr><td colspan=3 height=50 align=center valign=top><hr><font size=1><a style="text-decoration:none" href="link.html">SOME</a> | <a style="text-decoration:none" href="link.html">MORE</a> | <a style="text-decoration:none" href="link.html">LINKS</a> | <a style="text-decoration:none" href="link.html">HERE</a></font></td></tr></table>
</table>
</center>
</font>
</body>
</HTML>
When I run this through the W3 validator, I get these 3 errors:
Line 6, Column 6: end tag for element "HEAD" which is not open
Line 10, Column 7: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.
Line 55, Column 7: end tag for element "TABLE" which is not open.
I think I know the answer to Line 10 - you're not strictly allowed to simply stick a table in between <center> tags.
But what problem it has with the <head> and the <table> I'm not sure. As you'll see, I've got a title in the <head> and that sort of thing, so bit stumped :confused:
I'm really sorry, as I appreciate you must be sick of folk signing up to the forum and coming to sponge of your masterful knowledge, but if someone could give me a nudge on this, I'd be eternally grateful. I can then take a deep breath and hang about a bit longer.
Thanks!
I'm really sorry to burst in like this. Have just come across the forum in a search, and will give it some in depth browsing tomorrow!
I was wondering if any kind souls could take pity on me and help out with a couple of snags I'm hitting with validating the html of a web page? I'm afraid I'm a total novice, not to mention clutz, and so am completely useless at adressing the problems the validator chucks at me, so any advice gratefully received!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Test</TITLE>
<body bgcolor=white text=black link=black alink=black vlink=black>
</HEAD>
<font face="verdana">
<center>
<table width=800 cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=7 height=100 valign=bottom align=left><font size=6>test.com</font></td></tr>
<tr>
<td width=199 bgcolor=gray align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=199 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td></tr>
<tr><td colspan=7 height=2></td></tr>
<tr>
<td width=199 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=198 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td><td width=2></td>
<td width=199 bgcolor=black align=center><a style="text-decoration:none" href="link.html"><font size=3 color=white>link</font></a></td></tr></table>
<table width=800 cellpadding=0 cellspacing=0 border=0>
<tr><td colspan=3 height=12></td></tr>
<tr><td width=199 height=400 valign=top align=left>
some
links<br>
will<br>
go<br>
here<br>
when<br>
they need<br>
to be<br>
added<br>
</td><td width=2 height=400></td><td width=599 height=400 valign=top align=left>
Welcome to my website. I am having problems because I am an idiot and can't work out what's stopping my code being validated! If anyone can help me I'd be very grateful!
</td></tr>
<tr><td colspan=3 height=50 align=center valign=top><hr><font size=1><a style="text-decoration:none" href="link.html">SOME</a> | <a style="text-decoration:none" href="link.html">MORE</a> | <a style="text-decoration:none" href="link.html">LINKS</a> | <a style="text-decoration:none" href="link.html">HERE</a></font></td></tr></table>
</table>
</center>
</font>
</body>
</HTML>
When I run this through the W3 validator, I get these 3 errors:
Line 6, Column 6: end tag for element "HEAD" which is not open
Line 10, Column 7: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.
Line 55, Column 7: end tag for element "TABLE" which is not open.
I think I know the answer to Line 10 - you're not strictly allowed to simply stick a table in between <center> tags.
But what problem it has with the <head> and the <table> I'm not sure. As you'll see, I've got a title in the <head> and that sort of thing, so bit stumped :confused:
I'm really sorry, as I appreciate you must be sick of folk signing up to the forum and coming to sponge of your masterful knowledge, but if someone could give me a nudge on this, I'd be eternally grateful. I can then take a deep breath and hang about a bit longer.
Thanks!