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 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    26
    Thanks
    3
    Thanked 0 Times in 0 Posts

    question about headers + tables

    Are you allowed to put a table inside a table?
    On W3schools it says that all 6 headers must be used in order.

    So would this be allowed?
    <div class="nav">
    <h1>Navigation</h1>
    <h2>Sub Header</h2>
    </div>

    <div class="main">
    <h1>Welcome...</h1>
    <h2>Sub Header</h2>
    </div>

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,159
    Thanks
    23
    Thanked 599 Times in 598 Posts
    Quote Originally Posted by Darqniz View Post
    Are you allowed to put a table inside a table?
    You don't have any tables in you question so I think the real question is about:

    Quote Originally Posted by Darqniz View Post
    On W3schools it says that all 6 headers must be used in order.
    What you do show in your <div>'s is correct. You should usse H1 and then H2 But you dont have to. It's not a law, just easier to read.

  • #3
    Regular Coder
    Join Date
    May 2009
    Posts
    813
    Thanks
    123
    Thanked 24 Times in 24 Posts
    The code you supplied does not have any tables in it. Usually you should only have one h1 tag on a page.


  •  

    Posting Permissions

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