Which of the following is the correct syntax for making a list in HTML ?
2025
Which of the following is the correct syntax for making a list in HTML ?
Answer: B. <ul> <li>Item 1</li> </ul> — There are two main types of lists in HTML: ordered and unordered. Unordered lists use the <ul> tag with list items inside <li> tags, while ordered lists use…
- A.
<list> <item> Item 1</item> </list>
- B.
<ul> <li>Item 1</li> </ul>
- C.
<list> Item 1 </list>
- D.
<ul> <item> Item 1</item> </ul>
Attempted by 254 students.
Show answer & explanation
Correct answer: B
There are two main types of lists in HTML: ordered and unordered. Unordered lists use the <ul> tag with list items inside <li> tags, while ordered lists use <ol> for numbered sequences.
Loading lesson…