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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:31:11+00:00 2026-06-16T10:31:11+00:00

In the WHATWG HTML specification it says regarding to the div element that we

  • 0

In the WHATWG HTML specification it says regarding to the div element that we must strive not to use the div element.

It says:

Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors.

So what should we use instead of divs?

  • 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-06-16T10:31:13+00:00Added an answer on June 16, 2026 at 10:31 am

    Use what makes sense for the structure of your document. If you’re writing an article, use the article element. Defining segments within a document? Consider the section tag. Need to mark the header of a document? Use the header element.

    <article>
        <header>
            <h1>Foo Title Here</h1>
        </header>
        <p>Article content can go here.</p>
        <p>Note how meaningful this document structure is.</p>
        <footer>
            <!-- Links, etc. -->
        </footer>
    </article>
    

    Think about it, every document starts with semantically meaningful tags: We wrap our HTML document with the <html> tag. Inside, we define a <head> and a <body>. Within the head we provide a <title>, perhaps a few <script>‘s, and link up some stylesheets with <link> or <style>.

    Since everybody follows these rules, it boggles the mind why they would abandon this consistency and favor the use of vague and semi-meaningless tags like <div> to define crucial portions of their document.

    Contrast a document made up of vague and meaningless tags:

    <div>
        <div>
            <div>Foo Title Here</div>
        </div>
        <div>Article content can go here.</div>
        <div>Note how meaningful this document structure is.</div>
        <div>
            <!-- Links, etc. -->
        </div>
    </div>
    

    Pretty meaningless, right? Always use the right tool for the job.

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

Sidebar

Related Questions

The WHATWG document for HTML5 says that the rel attribute must contain values that
I'm trying to set up my site to use HTML 5 videos. The mp4
I've read: http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#the-accesskey-attribute and it doesn't say anywhere if or how the 'Home' key
After going through specification on HTML5 Storage: http://www.whatwg.org/specs/web-apps/current-work/multipage/webstorage.html#event-storage In the paragraph 11.3 Disk space
While reading over the WHATWG's HTML5 - A technical specification for Web developers I
I have read about Web Workers on http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html and I think I understand their
Does Safari have anything equivalent to the HTML 5.0 spec for window.navigator.online? http://www.whatwg.org/specs/web-apps/current-work/#browser-state If
The HTML5 spec mentions an UndoManager that can be used to query the previous
Greetings, I'm working on a JS-based application that does some complex work and logs
A WebVTT file must consist of a WebVTT file body encoded as UTF-8 and

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.