HTML-LISTS Flashcards

1
Q

What is the difference between an ordered list and an unordered list in HTML?

A
Ordered lists are displayed in numerical order.
EX:
< ol>
   < li>Beep< /li>
   < li>Boop< /li>< /ol >
Displays as:
1. Beep
2. Boop
Unorder lists are displayed as bullet-point lists.
EX:
< ul>
   < li>Beep< /li>
   < li>Boop< /li>< /u l>
Displays as:
*Beep
*Boop

(Note: Additional spaces have been added here and there to abide by the website’s display rules. [Cannot display code without premium version])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Is an HTML list a block element or an inline element?

A

An HTML list is a block element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly