Maybe this is a stupid question, but is using li better than using div's possibly for page performance or resources?
Asked
Active
Viewed 902 times
3
-
1The only performance difference is what goes *inside* the element (e.g bytes - sent over the wire). Choose elements based on logic - not performance considerations. Optimize *after* you have made those decisions. – RPM1984 Dec 19 '10 at 05:58
-
1`
- ` and `
– Tyler Treat Dec 19 '10 at 05:58` have very, very different purposes. They aren't even related, why would it matter? - ` and `
2 Answers
4
Why would performance matter more than anything? Use <li>
only when you want to mark up a list, use <div>
for sections/blocks of information.
Some browsers tend to render <li>
as bulleted list items; if you really want to talk about performance, chances are it'll be a browser performance hit to strip the list styles from those elements using CSS anyway.

BoltClock
- 700,868
- 160
- 1,392
- 1,356
-
It kind of depends on what you want your page to look like when styles are disabled or if the network is so messed up your stylesheet doesn't load. – Mike DeSimone Dec 19 '10 at 06:31