Computer Science, asked by umar30, 1 year ago

what ways does HTML offers for specifying lists of information

Answers

Answered by Anonymous
1
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 ULelement:

<UL> <LI>Unordered information. <LI>Ordered information. <LI>Definitions. </UL>

An ordered list, created using the OLelement, 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 DLelement, 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 costThe new version of this product costs significantly less than the previous one!Easier to useWe've changed the product so that it's much easier to use!Safe for kidsYou 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. flour10 g. sugar1 cup water2 eggssalt, pepperThe 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.

Answered by Anonymous
3
The two types of Lists in HTML-

1. Ordered list- in this list Numbers and alphabets are used.
ex- 1.apple, 2.ball and A.Cricket, B.football

2.Unordered list- in this list Bullets are used.
Ex- Circles, discs, squares etc.

Similar questions