HTML < li > Tag - Learn About Website | DaddyFile

0

HTML <li> Tag

Example

One ordered (<ol>) and one unordered (<ul>) HTML list:

<ol>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

<ul>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ul>

Definition and Usage

The <li> tag defines a list item.
The <li> tag is used in ordered lists(<ol>), unordered lists (<ul>), and in menu lists (<menu>).

Differences Between HTML 4.01 and HTML5

The "type" attribute is NOT supported in HTML5.

Tips and Notes

Tip: Use CSS to define the type of list.

Post a Comment

 
Top