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 6904293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:02:29+00:00 2026-05-27T08:02:29+00:00

Lets talk about the section element. I’m still confused when to use it, and

  • 0

Lets talk about the section element. I’m still confused when to use it, and it seems like no one can pin point when to use it properly?

I have been told, and I have read that it should not be used as a generic wrapper for content. So I am still using divs for this purpose, and I am rarely using sections, only article. But then I came across http://dev.opera.com/, which are using it in that way? So then they are using it wrong? But that is exactly how I would like to use it… To divide the page into a “main” section where the content goes.

Here is an example how I would like to layout my pages:

<html>
<head>

</head>

<body>

<header>

</header>

<section id="main">
    generic content
</section>

<footer>

</footer>

</body>
</html>
  • 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-27T08:02:30+00:00Added an answer on May 27, 2026 at 8:02 am

    The “section” tag is used to group general content and can be used with a generic title (h1, h2 or other).
    There are some rules to use “section” tag, those are the most important:

    1. Don’t use it for template structure – use other tags (header, footer, div) instead
    2. Don’t use it if you can use the “article” tag – so your articles can be used in other sites
    3. You can use a “section” in an “article” and, of course, an “article” in a “section”.

    Generally you can use it in order to structure the page by grouping related content: for example in a blog you can define two sections, one for the last entry and another for the oldest.
    You can also have a “section” in a “section”: you can have as many section (generic contents) as you need.

    <section>
        <h1>Last post</h1>
        <article>
            [My post...]
            <section>
                [Comments...]
            </section>
        </article>
    </section>
    
    <section>
        <h2>Oldest post</h2>
        <article>
            [First post...]
        </article>
        <article>
            [Second post...]
        </article>
        <article>
            [Third post...]
        </article>
    </section>
    

    Reading your code I think you can improve your structure using this:

    <html>
        <head>
        </head>
    
        <body>
            <header>
            </header>
    
            <div id="main">
                <section>
                    Generic content
                </section>
            </div>
    
            <footer>
            </footer>
    
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lets talk about JavaScript code which has setInterval methods every 2 sec. I also
I feel like developers talk about memory leaks but when you ask them what
Let's talk about theory a bit. We have one container, let's call it TMyObj
I`m a little confused about this point. Everything that I found in books, blogs,
Lets say I have an array like this: string [] Filelist = ... I
Everyone likes to talk about reusability. Where I work, whenever some new idea is
I am having trouble debugging silverlight, and the silverlight unit tests. Lets first talk
I have seen a lot of talk about dynamic typing in objective-c. But i
When reading the apple docs about multithreading, they talk a lot about Run Loops.
I've noticed a lot of talk about asp.net MVC lately, but I haven't come

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.