HTML List - 6 Tags and its Attributes (Reference)
The HTML list tags are used to create lists. It is mainly used to create lists. The list tags can have attributes like type, start, and reversed.
<ul>
Defines an unordered list. Bulleted list. Should use li tag inside.
<ul>
<li>Some text 1</li>
<li>Some text 2</li>
</ul>
<ol>
Defines an ordered list. Numerical or Alphabetical list. Should use li tag inside. Attributes - reversed, start, type.
<ol>
<li>Some text 1</li>
<li>Some text 2</li>
</ol>
<li>
Defines a list item. Used inside ul,ol and menu tags.
<ul>
<li>Some text 1</li>
<li>Some text 2</li>
</ul>
<ol>
<li>Some text 1</li>
<li>Some text 2</li>
</ol>
<dl>
Defines a description list. Wrapper to dt and dd tags.
<dl>
<dt>Term</dt>
<dd>Description</dd>
<dt>Term</dt>
<dd>Description</dd>
</dl>
<dt>
Defines a term/name in a description list.
<dl>
<dt>Term</dt>
<dd>Description</dd>
<dt>Term</dt>
<dd>Description</dd>
</dl>
<dd>
Defines a description of a term/name in a description list.
<dl>
<dt>Term</dt>
<dd>Description</dd>
<dt>Term</dt>
<dd>Description</dd>
</dl>
