Link to home
Start Free TrialLog in
Avatar of TimAttaway
TimAttawayFlag for United States of America

asked on

Overhead of div tags

I have recently started a new job and find that the code that I am supporting has an overabundance of superfluous <div> tags.  The attached code is scrubbed and provided only to give an example of the overuse of the tags.  To me it makes the code hard to read and maintain.  My question, however, is what sort of overhead if any this adds to the performance.  Is there any sort of a hit with these tags?

Thanks.
<div id="ctl00_x1">
 <span id="ctl00_x2"></span>
  <div id="ctl00_x3" >
   <div style="width: auto; margin: auto;">
    <div>       
     <div id="ctl00_x4" style="width:60px;">
      <img ...
      <span id="ctl00_x5" style="font-size:XX-Small;">Hide</span>
     </div>
     <div id="ctl00_x6" style="width: 150px;">
      <div id="ctl00_x7" style="text-align: center; background-color: #5377A9; color:white; width:145px; font-weight:bold;" class="Left">
       Test Cell<br />Settings
       <div id="ctl00_x8">
        <table id="LeftTable" cellpadding="0" ...
       </div>
      </div>
     </div>
     <div id="ctl00_x9" style="width:60px;">
      <img ... 
      <span id="ctl00_x10" style="font-size:XX-Small;">Hide</span>
     </div>
     <div id="ctl00_x11" style="width: 150px;">
      <div id="ctl00_x12" style="text-align: center; background-color: #5377A9; color:white; width:145px; font-weight:bold;" class="Left">
        Test<br />Settings
       <div id="ctl00_x13">
        <table ...>
       </div>
      </div>
     </div>
    </div>
    <br />        
   </div>  
  </div> 
 </div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of woepwobin
woepwobin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial