Interested in a few questions about why and when to use lists?
- Let's take as a basis a simple menu, for which the li list is needed here, if you can do with
div > a, you get a structure 1 level less nested. Maybe there is some deeper meaning?
<ul class="nav"> <li class="nav__item item"> <a class="item__link">Пункт меню</a> </li> <li class="nav__item item"> <a class="item__link">Пункт меню</a> </li> <li class="nav__item item"> <a class="item__link">Пункт меню</a> </li> </ul> <div class="nav"> <a class="nav__item">Пункт меню</a> <a class="nav__item">Пункт меню</a> <a class="nav__item">Пункт меню</a> </div> - Suppose you need to use lists and for this you have found a reasonable argument, then the next question. For example, there is a cap of 3 blocks: a logo, a block with contacts 1, a block with contacts 2.
ul.header > li.logo, li.contacts-1, li.contacts-2you also useul.header > li.logo, li.contacts-1, li.contacts-2? Wouldn't it be wise to usediv.header (или просто header) > div.logo, div.contacts-1, div.contacts-2?