...

View Full Version : Validation (XHTML 1.0 Transitional): Element 'h3' cannot be nested within element 'tr



sujatha
06-19-2012, 09:45 PM
<table class="center" cellpadding="8" width="90%">
<tr style="width:100%" class="GoldHeadline">
<h3 class="GoldHeadline">
Critical Thinking for Creative Problem Solving
</h3>
<td style="width:29%">
<iframe id="myIframe3" src="http://player.vimeo.com/video/41919197" width="200" height="150" frameborder="0"></iframe>
</td>
<td style="width:21%" valign="middle">
<h4>Jonakan O’Steen </h4>
<h4>Equity Residential</h4> <br/>
</td>
<td style="width:50%" align="left"><img src="Images/IREM-14521.jpg" alt="thirdFrame" class="align-right"/>
</td>
</tr>
</table>

felgall
06-19-2012, 10:58 PM
Get rid of the table - you don't have tabular data there so the table is the wrong thing to use.

Anyway all the content of a table needs to be inside <td> or <th> tags - you can't place content directly inside the <table> <thead> <tfoot> <tbody> or <tr> tags as the <table> tag is only allowed to contain <caption> <col> <colspan> <thead> <tfoot> and <tbody> tags and the <thead> <tfoot> and <tbody> tags are only allowed to contain <tr> tags.

You should also consider getting rid of the HTML 3.2 tags and attributes you are using.
cellpadding and width on the table tag should be replaced by CSS.
the iframe tag should be replaced by an <object> tag.
the align and valigh attributes should be replaced by CSS.

If you make all those changes then you will have got rid of all the obsolete HTML 3.2 in the page and can switch from the transitional doctype to the proper strict one (assuming that you do similarly for the rest of your content to get rid of all the HTML 3.2).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum