Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 01-10-2007, 10:00 PM XHTML errors
Cambridge's Avatar
Experienced Talker

Posts: 46
Trades: 0
Im trying to validate my website, but cant figure out how to get rid of these errors...i have very few (8).

click here to see what validator says.


Error Line 36, column 22: document type does not allow element "td" here .
<td class="image9"><img height="103" alt="" src="images/uogamers_09.jpg" The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).



Error Line 37, column 54: document type does not allow element "td" here .
width="9" /></td><td class="bgimage10" colspan="2">✉

Error Line 38, column 5: end tag for "td" omitted, but OMITTAG NO was specified .
</div>You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".



Info Line 37, column 21: start tag was here .
width="9" /></td><td class="bgimage10" colspan="2">Error Line 47, column 4: end tag for "div" omitted, but OMITTAG NO was specified .
</td>✉

Info Line 33, column 0: start tag was here .
<div id='status'>Error Line 94, column 13: end tag for "div" omitted, but OMITTAG NO was specified .
</div></table></tr>✉

Info Line 79, column 0: start tag was here .
<div id='navPre'>Error Line 94, column 13: end tag for "td" omitted, but OMITTAG NO was specified .
</div></table></tr>✉

Info Line 78, column 2: start tag was here .
<td class="bgimage15">Error Line 94, column 13: end tag for "tr" omitted, but OMITTAG NO was specified .
</div></table></tr>✉

Info Line 77, column 1: start tag was here .
<tr>Error Line 94, column 18: end tag for "td" omitted, but OMITTAG NO was specified .
</div></table></tr>✉

Info Line 72, column 4: start tag was here .
<td class="tdnorm" colspan="2"><table width="132" border="0" cellpadding="0"
Cambridge is offline
Reply With Quote
View Public Profile Visit Cambridge's homepage!
 
 
Register now for full access!
Old 01-10-2007, 10:29 PM Re: XHTML errors
PolarWeb's Avatar
Average Talker

Posts: 23
Trades: 0
line 36 and 37: you have previous td open, elements can't be mixed like this, you can have div inside a td, but it must be closed before the td is closed and previous td must be closed before a new one begins:

32 <td class="bgimage8" colspan="2">
33<div id='status'>
34 <div align='center'><font class='header'>Hybrid Status</font><br />
35 statusinc.php INCLUDE
36 <td class="image9"><img height="103" alt="" src="images/uogamers_09.jpg"
37 width="9" /></td><td class="bgimage10" colspan="2">
38</div>

line 47 error also caused because of previous reason

line 94. You will have to close open td:s for that table first, then close tr before you can close a table.

line 97: td must always be inside a table row (tr)
__________________


Please login or register to view this content. Registration is FREE
!

Last edited by PolarWeb; 01-10-2007 at 10:30 PM..
PolarWeb is offline
Reply With Quote
View Public Profile
 
Old 01-10-2007, 10:36 PM Re: XHTML errors
Cambridge's Avatar
Experienced Talker

Posts: 46
Trades: 0
if i post the code could you fix it for me please
Cambridge is offline
Reply With Quote
View Public Profile Visit Cambridge's homepage!
 
Old 01-11-2007, 02:48 PM Re: XHTML errors
frofi's Avatar
Extreme Talker

Posts: 236
Location: London
Trades: 0
Generally the syntax for opening and closing elements is as follows:

Open <1>....<2>....<3> Close </3>...</2>...</1>
Some elements are self slosing, like <br/>, <hr/> or <input ........ />
Finally, some you can't wrap around others, like <a href="#"><div.....></div></a>, although it would work.
__________________
THE FORCE is with me at last! All I need now is some TALKUPATION ;)
frofi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to XHTML errors
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21249 seconds with 12 queries