2.HTML Lists
2.HTML Lists
HTML lists allow web developers to group a set of related items in lists.
types of Lists:
1. Ordered List
2. Unordered List
3. Definition or Description List(html5)
Ordered Lists ( <ol> ):Ordered lists are used when you want to present a list of
items in a specific order, typically using numbers or letters as markers. To create an
ordered list, use the <ol> element and list items with the <li> (list item) element.
Example:
<ol>
<li>Java</li>
<li>Selenium</li>
<li>html</li>
<li>Css</li>
</ol>
Unordered Lists ( <ul> ): Unordered lists are used when the order of items doesn't
matter. They typically use bullets or other symbols as markers. To create an unordered
list, use the <ul> element and list items with the <li> element.
Example:
<ul>
<li>Java</li>
<li>Selenium</li>
<li>html</li>
<li>css</li>
</ul>