<ol>
(ordered list) and <ul>
(unordered list) elements.An ordered list is a list that is numbered and is created using the <ol>
element. Each item in the list is enclosed in a <li>
(list item) element. Here is an example of an ordered list:
<ol> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ol>
This will create a numbered list with three items: "Item 1", "Item 2", and "Item 3".
An unordered list is a list that is bulleted and is created using the <ul>
element. Each item in the list is enclosed in a <li>
(list item) element. Here is an example of an unordered list:
<ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul>
This will create a bulleted list with three items: "Item 1", "Item 2", and "Item 3".
You can also nest lists inside other lists by placing a list inside a <li>
element of another list. This allows you to create more complex list structures.
In summary, lists in HTML can be created using the <ol>
element for ordered lists (numbered) and the <ul>
element for unordered lists (bulleted). Each item in the list is enclosed in a <li>
element, and lists can be nested inside other lists by placing a list inside a <li>
element of another list.
Social Plugin