👉 TYPES OF HTML LIST
We have 3 types of lists in HTML
- Order Lists
- Unordered Lists
- Description List
How to write a Ordered list in HTML.
<ol>
<li>Computer</li>
<li>Mouse</li>
<li>Printer</li>
<li>Monitor</li>
</ol>
type="1" | The list items will be numbered (default) |
type="A" | The list items will be uppercase alphabet |
type="a" | The list items with lowercase letters |
type="I" | The list items will be uppercase roman numbers |
type="i" | The list items will be numbered with lowercase roman numbers |
UNORDERED LIST
<h2> Unordered lists </h2>
<ul>
<li> facebook</li>
<li>twitter</li>
<li>chatbox</li>
<li>bingo</li>
</ul>
Output:
disc | Sets the list item to a bullet (default) |
circle | Sets the list item to a circle |
square | Sets the list item a square |
none | The list items will not be done |
<ul style="list-style-type: disc;">
<ul style="list-style-type: circle;">
<ul style="list-style-type: square;">
👓 HTML Description Lists
It is descriptive each items
<dl> tag define description <dt> define the name <dd> describe each terms:
<h3> Description Lists</h3>
<dl>
<dt>Computer</dt>
<dd> -Computer is machine to learn everything</dd>
<dt> RAM </dt>
<dd> -Random Access Memory </dd>
</dl>
✔ Thanku:
Thanku:)
Comments
Post a Comment