Reputation: 175
Is there any performance wise difference between DIV and UL html tag if we are designing a complex web page. Which one is lighter and loads faster in browser.If I can design using both div and li, then what should i choose?
Upvotes: 7
Views: 16789
Reputation: 1
ul""is an unordered list that starts at being marked and listed at an indented position away from the border. It's as if you individually pressed the Tab button for each item on the list. A "div" would mark and list the same list at the border, meaning the list and it's marks will be aligned with the left borders of the div it is in
Upvotes: 0
Reputation: 22808
Please check this one, it might be very useful for you to decide
Why should I use 'li' instead of 'div'?
Upvotes: 6
Reputation: 48546
They're just tags. There's zero difference whatsoever between them DOM-wise; the only difference is in the rendering (CSS, which you can customize either way) and the meaning (semantics).
If you have a list of things, use a <ul>
.
Upvotes: 9