HTML Lists
HTML lists allow web developers to group a set of related items in lists.
<ol>
Ordered (more)
An ordered list starts with the <ol>
tag.
Each list item starts with the <li>
tag.
Ordered <ol>
list items <li>
will be marked with 1
numbers by default:
<ol>
<li>Sumit</li>
<li>Amit</li>
<li>Aryan</li>
</ol>
<ul>
Unordered (more)
An unordered list starts with the <ul>
tag.
Each list item starts with the <li>
tag.
Unordered <ul>
list items <li>
will be marked with
disk bullets by default:
<ul>
<li>Sumit</li>
<li>Amit</li>
<li>Aryan</li>
</ul>
<dl>
Description Lists
A description list is a list of terms, with a description of each term.
The <dl>
tag defines the description list, the <dt>
tag defines the
term (name), and the <dd>
tag describes each term:
<dl>
<dt>Sumit</dt>
<dd>- He is a Python developer.</dd>
<dt>Aryan</dt>
<dd>- He is a student of MSK Institute.</dd>
</dl>