Why are web developers so fond of using lists?

I have been developing for some time and often develop sites using menu tabs.

And I can’t understand why there are so many web developers like using <ul> li> lists, etc., and not just using old old divs.

I can create menus in divs that are simple and work fine in every browser. With lists, I usually try to hack it anyway so that it works correctly.

So my question is simple: why use lists to create my menus instead of divs?

+5
source share
3 answers

Simple: semantic HTML. Navigation is essentially a list of links in your HTML, so your markup should reflect that.

, , (.. ), google .

, .

, .

+10

, , HTML . , CSS ( , - ​​..).

, "" div. , , CSS , .

+1

, : div, , , , Lynx .. ( UA CSS) , . mashups , , , - .

Basically, divs are redundant (check out http://camendesign.com/ if you don't believe me, no divs, classes or intervals, although using too much HTML5 for a production site).

0
source

All Articles