Definition and Usage
The li tag defines a list item.
The li tag is used inside
ordered lists(ol), unordered lists (ul),
and in menu lists (menu).
In ul and menu, the list items will usually be displayed with
bullet points.
In ol, the list items will usually be displayed with numbers or
letters.
Tip: Use CSS to style lists.
Example
One ordered (<ol>) and one unordered (<ul>) HTML list:
<ol>
<li>Mobile</li>
<li>Laptot</li>
<li>Computer</li>
</ol>
<ul>
<li>Mobile</li>
<li>Laptop</li>
<li>Computer</li>
</ul>
Comments
Post a Comment