HTML5 Reset

Out of context: Reply #10

  • Started
  • Last post
  • 17 Responses
  • ukit0

    After reading the spec I walked away with the idea that <section> should not just be a universal container like <div>, but that they want you to use it for actual content.

    http://dev.w3.org/html5/spec/Ove…

    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.

    Examples of sections would be chapters, the various tabbed pages in a tabbed dialog box, or the numbered sections of a thesis. A Web site's home page could be split into sections for an introduction, news items, and contact information.

    The section element is not a generic container element. When an element is needed for styling purposes or as a convenience for scripting, authors are encouraged to use the div element instead. A general rule is that the section element is appropriate only if the element's contents would be listed explicitly in the document's outline.

View thread