HTML and CSS: What do the <ul> and <li> tags mean?

The following lines of CSS code:

.sf-menu li:hover ul, .sf-menu li.sfHover ul {top: 40px!important; }

What do HTML tags mean <ul>and <li>?

+5
source share
3 answers

They focus on the elements <ul>and <li>on the page.

In CSS, the id has a prefix #, the class has a prefix ., and the element has no prefix.

Thus, the selector .sf-menu li:hover ulwill be applied to any element <ul>inside the element <li>that you are currently pointing to, inside element c class="sf-menu".

The selector .sf-menu li.sfHover ulapplies to any element <ul>, inside element <li>c class="sfHover", inside element c class="sf-menu".

+5
source

HTML- .

UL - ( OL)
LI -

+20

ul .

li .

These are HTML tags for bulleted lists, not numbered lists (which are specified olfor an ordered list).

+6
source

All Articles