HTML Basics-list tag, the description list and attributes used in description list-The description list is a list with description of each list item. The description lists are very useful specially while we need to make glossaries which contain a description and a term. Opening tag of description list is  tag is used and   tag to describe the terms. It is list of items with description. 
-  and the closing tag is 
|  | 
| HTML Basic-the description list and attributes used in description list | 
Tags and attributes used in a description list
| Opening and closing tags of the description list | |
| To define the heading of the list(Optional ). | |
| To define the term(name) | |
| Used to describe the terms. | |
| Class | This attribute is used to subclass the tag names. It is a list of   standard general markup language name tokens and separated by spaces. | 
| Clear | The clear attribute is common to all block like elements. Examples – clear=all clear=right clear=left clear=”50   pixels” clear=”50   en” | 
| Compact | This attribute is used to set compactness of the   list. DL Compact will be the opening tag immediately followed by first term –   Example – ??   More ?? | 
| ID | This attribute is used as for target hyperlinks.   It is standard general markup language identifier and also used for naming   elements in related style sheets. | 
| Lang | This is a language attribute and uses two letter language code listed   in ISO-639. May be followed by a 2 letter country code and a period. | 
Example of a description list
| Note Books Mini note books for field staff Pens Ballpoint pens for staff Pencils Lead Pencils for draft and drawing section Erasers Erasers issued with lead pencils | Office Stationery Note Books        -Mini note books for   field staff Pens        -Ballpoint pens for   staff Pencils        -Lead Pencils for draft   and drawing section Erasers        -Erasers issued with   lead pencils | 
 
 
 
 
 
 
 
 
 
 
No comments:
Post a Comment