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])
2
Q
Is an HTML list a block element or an inline element?
A
An HTML list is a block element.