HTML lists allow web developers to group a set of related items in lists. There are 3 type of list in HTML: 1. Ordered List (<ol>), 2. Unordered List (<ul>), 3. Defination or Description List (<dl>)
Example:
Code:
<ol type="a">
<li> HTML </li>
<li> CSS </li>
<li> Javacrript </li>
</ol>
Output:
Example:
Code:
<ul>
<li> HTML </li>
<li> CSS </li>
<li> Javacrript </li>
</ul>
Output:
Example:
Code:
<dl>
<dt>HTML</dt>
<dd>-HTML stands for Hyper Text Markup Language. HTML is the standard markup language for creating Web pages. HTML describes the structure of a Web page.</dd>
<dt>CSS</dt>
<dd>-CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed on screen, paper, or in other media.</dd>
<dt>Javascript</dt>
<dd>-Javascript, often abbreviated as JS, is a scripting languages, primarily used on the Web. It is used to enhance HTML pages and is commonly found embedded in HTML code. JavaScript is an interpreted language.</dd>
</dl>
Output: