Why should I use 'li' instead of 'div'?

zsharp picture zsharp · Feb 14, 2009 · Viewed 45.5k times · Source

I'm not sure why I need to use ul-li vs simply using divs when listing items. I can make both look exactly the same so where is the functional advantage to creating an unordered list vs lining up divs?

Answer

Jeremy DeGroot picture Jeremy DeGroot · Feb 14, 2009

For semantic correctness. HTML has the ability to express lists of things, and it helps the Google robot, screen readers, and all manner of users who don't care solely about the presentation of the site understand your content better.