- Web
- The part of the Internet that contains websites and web pages
- HTML
- A markup language for creating web pages
- CSS
- A technology to make HTML look better
Lists in HTML5
The HTML elements that allow you to build all kinds of lists
New! My 44-page ebook "CSS in 44 minutes" is out! 😃
# dd
Defines an item in a definition list.
Example: Copy
# dl
Defines a definition list.
Example: Copy
- Web
- The part of the Internet that contains websites and web pages
- HTML
- A markup language for creating web pages
- CSS
- A technology to make HTML look better
# dt
Defines a definition term.
Example: Copy
- Web
- The part of the Internet that contains websites and web pages
- HTML
- A markup language for creating web pages
- CSS
- A technology to make HTML look better
# li
Defines a list item within an ordered list <ol>
or unordered list <ul>
.
Example: Copy
- Step one
- Step two
- ????
- PROFIT!!!
Example: Copy
My shopping list:
- Milk
- Bread
- Chocolate
- More chocolate
# ol
Defines an ordered list.
Example: Copy
- Step one
- Step two
- ????
- PROFIT!!!
type
Defines how the list is numbered.
"1"
Uses numbers.
"a"
Uses lowercase letters.
"A"
Uses uppercase letters.
"i"
Uses lowercase Roman numerals.
"I"
Uses uppercase Roman numerals.
start
Defines a number to start the list with.
"3"
You can use any integer.
reversed
Reverses the order of the list.
No value required.# ul
Defines an unordered list.
Example: Copy
My shopping list:
- Milk
- Bread
- Chocolate
- More chocolate