Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #34156
    Rai
    Member

    Hi !,

    What do you think?,

    How we should use the typical

    in HTML5?

    it should be a section?, like

    ...

    Post your comments.

    #86006
    Brightonmike
    Member

    Pardon? Could you please re-phrase?

    #86007
    Rai
    Member

    And now?,

    #86008
    jamygolden
    Member

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

    #86010
    WouterJ
    Member

    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: http://html5doctor.com/avoiding-common-html5-mistakes/

    #86011
    Rai
    Member

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

    #86012
    Rai
    Member

    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.

    #86013
    Rai
    Member

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.