Identify the error(s) and write the correct code:-
<head>
<title> Creating Ordered List
<style type = "text/ ">
Ol {list-style: upper}
</head>
</style>
Answers
Answer:
HTML offers authors several mechanisms for specifying lists of information. All lists must contain one or more list elements. Lists may contain:
Unordered information.
Ordered information.
Definitions.
The previous list, for example, is an unordered list, created with the UL element:
<UL>
<LI>Unordered information.
<LI>Ordered information.
<LI>Definitions.
</UL>
An ordered list, created using the OL element, should contain information where order should be emphasized, as in a recipe:
Mix dry ingredients thoroughly.
Pour in wet ingredients.
Mix for 10 minutes.
Bake for one hour at 300 degrees.
Definition lists, created using the DL element, generally consist of a series of term/definition pairs (although definition lists may have other applications). Thus, when advertising a product, one might use a definition list:
Lower cost
The new version of this product costs significantly less than the previous one!
Easier to use
We've changed the product so that it's much easier to use!
Safe for kids
You can leave your kids alone in a room with this product and they won't get hurt (not a guarantee).
defined in HTML as:
<DL>
<DT><STRONG>Lower cost</STRONG>
<DD>The new version of this product costs significantly less than the
previous one!
<DT><STRONG>Easier to use</STRONG>
<DD>We've changed the product so that it's much easier to use!
<DT><STRONG>Safe for kids</STRONG>
<DD>You can leave your kids alone in a room with this product and
they won't get hurt (not a guarantee).
</DL>
Lists may also be nested and different list types may be used together, as in the following example, which is a definition list that contains an unordered list (the ingredients) and an ordered list (the procedure):
The ingredients:
100 g. flour
10 g. sugar
1 cup water
2 eggs
salt, pepper
The procedure:
Mix dry ingredients thoroughly.
Pour in wet ingredients.
Mix for 10 minutes.
Bake for one hour at 300 degrees.
Notes:
The recipe may be improved by adding raisins.
The exact presentation of the three list types depends on the user agent. We discourage authors from using lists purely as a means of indenting text. This is a stylistic issue and is properly handled by style sheets.