Treehouse: Grow your CSS skills. Land your dream job.

div id=”page-wrap” should be section on HTML5?

  • Rai
    # August 31, 2011 at 8:26 am

    Hi !,

    What do you think?,

    How we should use the typical

    in HTML5?

    it should be a section?, like


    Post your comments.

    # August 31, 2011 at 8:29 am

    Pardon? Could you please re-phrase?

    # August 31, 2011 at 8:30 am

    And now?,

    # August 31, 2011 at 8:37 am

    Hmmm. I’m not 100% sure, but I use div since it isn’t necessarily a ‘section’.

    # August 31, 2011 at 8:46 am

    You cann’t say it without more information.

    The main difference between a <div> or a <section> tag is that the section had a semantic meaning and the div tag not. So if the #page-wrap is only a container with nothing special you should use the div tag, but if it’s important for the code (for instance this content #page-wrap) you should use the section tag.

    A nice link:

    # August 31, 2011 at 8:47 am

    I´m not sure about it. This is what w3c say about section:

    “The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading”.

    # August 31, 2011 at 8:51 am

    Why I´m asking this is because w3c strongly recommend use elements instead of a div so I think if we use so much things like “page-wrap” it should be a element for that.

    # August 31, 2011 at 8:59 am

    Thanks Wouter!,
    I will take the div tag option.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.