SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    header element in HTML 5

    How many <header> element I can keep in HTML 5 ?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,322
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    There are lots of good HTML5 sites online that explain this sort of thing (just so you know ). E.g. check this out:

    http://html5doctor.com/the-header-element/

    You are allowed to divide your page up into as many sections as necessary, and each section (theoretically) can have a header, so far as I understand (which isn't saying much ).

  3. #3
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    You are allowed to divide your page up into as many sections as necessary,
    when you say divide ..do you mean using <div> ? or using <section> ?

    and each section (theoretically) can have a header, so far as I understand (which isn't saying much ).
    Ok. Did you mean like this ..

    <div>
    <header>
    <p>tick tick</p>
    </header>
    </div>

    OR like this...

    <section>
    <header>
    <p>tick tick</p>
    </header>
    </section>

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,322
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    Sorry, I'm talking about <sections>s here.

    Quote Originally Posted by windowsxp View Post
    Did you mean like this ..

    <div>
    <header>
    <h1>tick tick</h1>
    </header>
    </div>

    OR like this...

    <section>
    <header>
    <p>tick tick</p>
    </header>
    </section>
    ... and of course the heading is primarily for heading elements, I presume ...

    The second one, although you wouldn't just have a header in there:

    Code:
    <section>
    <header>
    <p>tick tick</p>
    </header>
    
    More content here ...
    
    </section>


Bookmarks

Posting Permissions

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