Problem Statement
Which tag is used to create an unordered list in HTML?
Explanation
The ul tag is used to create an unordered list in HTML. The ul stands for unordered list. Unordered lists display items with bullet points rather than numbers. Each item in the list is marked with an li tag, which stands for list item. By default, browsers display unordered list items with solid circular bullets. You can change the bullet style using CSS. Unordered lists are commonly used when the order of items does not matter, such as lists of features, ingredients, or menu items. The ul tag is a block-level element, which means it starts on a new line and takes up the full width available. Understanding when to use unordered versus ordered lists is important for semantic HTML.
Code Solution
SolutionRead Only
<!-- Basic unordered list --> <ul> <li>Apple</li> <li>Banana</li> <li>Orange</li> </ul> <!-- List with multiple items --> <ul> <li>HTML</li> <li>CSS</li> <li>JavaScript</li> <li>React</li> </ul>
