Home >> HTML 5 >> li Tag in HTML 5

li Tag in HTML 5

The <li> HTML element is used to represent an item in a list.

HTML Lists are of two types

1. Ordered list, tag used for this is " ol "

2. Unordered list, tag used for this is " ul "

Example-1

<ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ul>

Output

Example-2
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ol>
 
Output
  1. First
  2. Second
  3. Third

Post Your Comment

Next Questions
link Tag
ul Tag
video Tag
wbr Tag

Copyright ©2022 coderraj.com. All Rights Reserved.