Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6047451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:21:09+00:00 2026-05-23T07:21:09+00:00

I am reading over HTML5 docs on W3C site now, and I just read

  • 0

I am reading over HTML5 docs on W3C site now, and I just read this:

Note: 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.

So, I interpret that as “Do not style section elements. Use DIV instead.” But I’ve seen a few websites that style all of the HTML5 elements, and guess what? I ‘Viewed Source’ of that W3C link below where it says not to style a section element, and they styled it themselves! WTF?
http://www.w3.org/TR/html5/sections.html#the-section-element

Or should I interpret the above statement as:

“You can style section elements, so long as the contents of the section element would be listed explicitely in the document’s outline.”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:21:10+00:00Added an answer on May 23, 2026 at 7:21 am

    The HTML5 spec does not state that you shouldn’t apply CSS styles to the section tag, but rather that you shouldn’t include section tags simply for styling/scripting purposes, as that affects the semantic layout of your document.

    From the section 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. [emphasis added]

    Compare to the section about div:

    div elements can be useful for stylistic purposes or to wrap multiple paragraphs within a section that are all to be annotated in a similar way. [emphasis added]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reading over the responses to this question Disadvantages of Test Driven Development? I got
I was reading over the documentation for query hints: http://msdn.microsoft.com/en-us/library/ms181714(SQL.90).aspx And noticed this: FAST
I was reading over this question and wondered if the accepted answer might also
I've read many posts and blogs at this point and I'm still not sure
So I was reading over something on this page ( http://gamedeveloperjourney.blogspot.com/2009/04/point-plane-collision-detection.html ) The author
I've been reading over this resource as well as this post to try to
After reading over some of the other responses to this type of question I
I was reading over the Dropbox API and I found this line: NSString* title
I was reading over http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html But I'm really not grasping how to ignore certain
I was reading over the tutorial here: http://www.1keydata.com/sql/sql-running-totals.html and it all made sense until

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.