字幕列表 影片播放
HTML offer three types of lists: ordered, unordered, and definition.
The ordered, or numbered list, <ol> uses the list item element <li> to specify each item.
The end tag for this element is optional. The numerals for the ordered list can be changed
using the type attribute. Arabic numbers are used by default but we can also set the type
to for example lower or uppercase letters or roman numerals.
The start attribute sets the beginning value for the list.
And the value attribute can be used to set the value for a specific list item.
The unordered, or bulleted list, <ul> also uses the list item element as with the ordered
list. It's default marker is a disc, which it can
be changed to either a circle or a square using the type attribute.
Lastly, we have the definition, or description list, <dl> which consists of a series of definition
terms <dt> paired with definition data <dd>.
Lists may also be nested and different list types can be used together with each other.