What is a list tag and mention the most commonly used list tags?
HTML5 users implement list tags to list out the required information. The most commonly used list tags are mentioned below for your acknowledgment.
Definition List: This list tag offers a list in it and takes Definition Term (<dt>...</dt>
) and a detailed definition (<dd>...</dd>
).
1. Ordered List: This list tag provides the required list by the user in a numbered format.
Syntax:
<ol>...</ol>
2. Unordered List: This one offers the user required a list in a bullet format.
Syntax:
<ul>...</ul>
Both the ordered and unordered list item tags use the list item tags (<ul>...</ul>
) in them.
BY Best Interview Question ON 20 Jul 2019