Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    <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>

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,611
    Thanks
    0
    Thanked 645 Times in 635 Posts
    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).
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •