Unordered Lists
<ul> <!-- <ul> defines unordered list -->
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
<ul>
OUTPUT :
- HTML
- CSS
- JS
- HTML
- This is Adds Structure to a WebPage
- CSS
- This Adds style to WebPage
- HTML
- CSS
- JS
- React
- Next Js
- TailWind
Ordered Lists
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ol>
In ordered lists, in default it is in order as 1,2,3.. but we can change this order type by using attribute inside <ol>
tag. here is how to do it
<ol type="A">
<li>First</li>
<li>Second</li>
<li>Third</li>
</ol>
This list will in a order like A,B,C.
Description List
we can create description list by using <dl>
tag and we need to use two more tags name <dt>
which is descriptive term and <dd>
which is descriptive definition.
Example :
<dl>
<dt>HTML</dt>
<dd>This is a Markup Language</dd>
</dl>
OUTPUT :
We can also add nested lists. Here is an example
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JS
<ul>
<li>React</li>
<li>Next Js</li>
<li>TailWind</li
</ul>
</li>
<ol>