Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the reason behind using UL Li lists to draw navigation bars?

Tags:

html

css

I have seen css navigation designs done mostly through ul and li lists for the tab structure. What is the reason behind this?. What is the fall-back for such sites if css is somehow disabled?

like image 699
sushil bharwani Avatar asked Nov 10 '11 08:11

sushil bharwani


1 Answers

Semantic markup has various reasons, for example:

  • screen readers can access the site more easily
  • google bot can crawl the site more easily

This link gives more detail on the topic: Semantic HTML. Besides, it is HIGHLY unlikely someone will have CSS disabled. In my opinion there is absolutely no need to provide fallback for that case, the navigation would still be accessible anyway.

like image 50
atripes Avatar answered Nov 15 '22 06:11

atripes