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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:35:36+00:00 2026-06-01T11:35:36+00:00

I have several div elements for charts. Yslow is saying to reduce DOM elements.

  • 0

I have several div elements for charts. Yslow is saying to reduce DOM elements.

Can i use:

<span class="col1 left"></span><span class="col2 center"></span><span class="col3 right"></span>

instead of:

<div class="col 1 left"></div><div class="col2 center"></div><div class="col3 right"></div>

to reduce DOM elements, or is span a DOM element too?

I’ve got about 900 in total so far. Any ideas or suggestion is greatly appreciated.

  • 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-01T11:35:37+00:00Added an answer on June 1, 2026 at 11:35 am

    span is a DOM element too. So for the number of DOM elements, it won’t make a difference. To reduce the number of DOM elements, you’d need to consider whether each element is really necessary.

    Can you also create the same visual page with different HTML? Using less elements will make it clear and easier to read. Perhaps you’re complicating things too much by adding extra elements that are not really needed.

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

Sidebar

Related Questions

If you have several div s on a page, you can use CSS to
I have several div elements like this: <div class=newsContainer> <div class=deleteBoxIcon> <img alt=Delete src=close_mark.png>
I have a div which contains several elements: <div class=menuItem designMenu id=dMenu> <ul class=menuList
I have several blocks that look like this: <div class='templatechoicedesigncss'> <img src='/images/templatepics/random(100x140).png' /> <p>
I have a container DIV which contains several block-DIVS. Every block-DIV contains SPAN items
I have a div (main div) which contains several div elements(sub divs). I want
I have several elements with already set fonts - like <div style=font-size: 10px> some
I have a web app where I have several elements with class=classA . I
Have table and several div elements. Table is time grid and divs are events
In jQuery, I'm creating several div elements within a class: function class([..]) { this.par1

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.