Lists
In HTML, there are three types of lists: ordered, unordered, and descriptive.
Ordered List and Unordered List
An ordered list is a list of items numbered, whereas an unordered list is a list of items marked with bullet points.
index.html
Here is an example of an unordered list:
index.html
This would create a bullet-pointed list with the items 'First item', 'Second item', and 'Third item'.
Both the <ol>
and <ul>
elements can be used with the type
attribute to specify the numbering or bullet point style.
For example, you could use the type
attribute to create a list with lowercase letters instead of numbers, like this:
index.html
The <li>
element can be used with the value attribute to specify the numbering or bullet point style for a specific item in the list.
index.html
Descriptive list
A description or definition list lists terms and their corresponding descriptions.
index.html
The <dl>
element is used to define the description list, and the <dt>
and <dd>
elements are used to determine the terms and descriptions, respectively.
Here is an example of a description list with multiple descriptions for a single term:
index.html
Tak for dine kommentarer!
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Spørg mig spørgsmål om dette emne
Opsummér dette kapitel
Vis virkelige eksempler
Awesome!
Completion rate improved to 3.45
Lists
Stryg for at vise menuen
In HTML, there are three types of lists: ordered, unordered, and descriptive.
Ordered List and Unordered List
An ordered list is a list of items numbered, whereas an unordered list is a list of items marked with bullet points.
index.html
Here is an example of an unordered list:
index.html
This would create a bullet-pointed list with the items 'First item', 'Second item', and 'Third item'.
Both the <ol>
and <ul>
elements can be used with the type
attribute to specify the numbering or bullet point style.
For example, you could use the type
attribute to create a list with lowercase letters instead of numbers, like this:
index.html
The <li>
element can be used with the value attribute to specify the numbering or bullet point style for a specific item in the list.
index.html
Descriptive list
A description or definition list lists terms and their corresponding descriptions.
index.html
The <dl>
element is used to define the description list, and the <dt>
and <dd>
elements are used to determine the terms and descriptions, respectively.
Here is an example of a description list with multiple descriptions for a single term:
index.html
Tak for dine kommentarer!