← BYTES
HTML·Starter·Ref: 2.1.11

What is the purpose of an ordered list (`<ol>`) versus an unordered list (`<ul>`) in HTML?

Have a question about this video? Mention reference 2.1.11 when you contact us.

a.They render identically with no visual or semantic difference
b.`<ol>` produces a numbered list implying sequence/order; `<ul>` produces a bulleted list with no inherent order implied among its items
c.`<ul>` can only contain text, while `<ol>` can contain images
d.`<ol>` is deprecated in favor of `<ul>` in modern HTML
An ordered list (<ol>) numbers its items (1, 2, 3...), semantically signaling that the sequence/ranking matters (like steps in a recipe); an unordered list (<ul>) uses bullet points, semantically signaling the items have no particular required order relative to each other.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES2111#HTML