Академический Документы
Профессиональный Документы
Культура Документы
Lists are used to group related pieces of information together, so they are clearly associated
with each other and easy to read.
Unordered lists
Unordered lists, or bulleted lists, are used when a set of items can be placed in any order. An example is a
shopping list:
milk
bread
butter
coffee beans
Ordered lists
Ordered lists, or numbered lists, are used to display a list of items that need to be placed in a specific order.
An example would be cooking instructions :
1. Gather ingredients
2. Mix ingredients together
3. Place ingredients in a baking dish
4. Bake in oven for an hour
5. Remove from oven
6. Allow to stand for ten minutes
7. Serve
The CSS list-style-type property is used to define the style of the list item marker:
a. Unordered list:
<!DOCTYPE html>
<html>
<body>
</body>
</html>
b. Ordered list:
The type attribute of the <ol> tag, defines the type of the list item marker:
Type Description
type="1" The list items will be numbered with numbers (default)
type="A" The list items will be numbered with uppercase letters
type="a" The list items will be numbered with lowercase letters
type="I" The list items will be numbered with uppercase roman numbers
type="i" The list items will be numbered with lowercase roman numbers
Example:
<!DOCTYPE html>
<html>
<body>