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

  • Home
  • SEARCH
  • 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 6868905
In Process

The Archive Base Latest Questions

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

What is the best practice for developing a layout? Is better to limit divs?

  • 0

What is the best practice for developing a layout? Is better to limit divs? I was looking through the html/css of some popular sites and they all seem to have divs within divs. For instance, a div for the entire page, a div for the topbar, a div within the top bar for the logo, search bar, etc.

Is this a good practice? I suppose it’s easier to position all the divs correctly and than place the necessary elements within the divs. It’s what I’ve been doing this far but want to make sure I’m learning the correct approach.

Any help on this is appreciated. Thanks!

  • 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-27T03:29:30+00:00Added an answer on May 27, 2026 at 3:29 am

    Use <div>s when you need to divide (that’s what divs are supposed to be used for) sections of your page from one another. Header/footer from content for instance, or individual posts on a blog.
    However, you shouldn’t use them when semantically another element would make sense.

    If the archive on the previously mentioned blog only showed a two line summary of every post in the archive, an ordered list might make more sense as you are defining a list of items which are in order. <li> elements are block elements as well and can be styled in exactly the same way.

    Sometimes, it will make sense to have nested <div> tags, and sometimes you shouldn’t.
    As a basic test, imagine your page is being parsed by a reader for a visually impaired user. It needs to know what is in each node of the document so it can announce it properly. It doesn’t care what your visual CSS needs are, it just wants to parse it into speech as accurately as possible.

    Basic points to remember:

    • Write your HTML primarily for structure not visuals
    • The person viewing your website may not be using your CSS
    • The person viewing your website may not be using a conventional web browser
    • You can always tweak your structure if the CSS doesn’t quite work, providing it remains the same semantically.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are developing a new web service and are looking into the best practice
I have a best practice question. I'm developing a OO MVC framework in PHP,
What are some best practices to keep in mind when developing a script program
I am new to developing for android. I have a question regarding some best
Our team is developing RESTFul applications...we are debating the BEST PRACTICE approach. Should 404
Best practice for developing .NET programs seems to be this: never reference dlls from
What is the best-practice for developing web-pages for both non-JS-enabled and JS-enabled pages? I
This is a best practice type of question. I am developing a complete AJAX
I'm curious about best practice when developing n-tier application with Linq-to-SQL and WCF service.
What is the best practice for developing a shared class library in Visual Studio

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.