Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Definition and Usage
- The <dl> tag defines a description list.
- The <dl> tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name).
- Data Lists in html
- Unlike Ordered and UnOrdered lists, data lists marks its elements by indentation. Data lists can be defined using <DL> ... </DL> tags. The tag <DL> indicates the start of a data list while </DL> indicates the end of the data list.
- Attributes of <DL> .. </DL> :
- <DT>: DT stands for Definition Term. This tags will be enclosed in <DL> ... </DL> tags alternatively.
- <DD>: DD stands for Definition Description. This tags will be enclosed in <DL> ... </DL> tags alternatively.
- Example:
- <DL>
- <DT> Definition Term 1 </DT>
- <DD> Definition Description 1</DD>
- <DD> Definition Description 2</DD>
- <DT> Definition Term 2</DT>
- <DD> Definition Description 1 </DD>
- <DD> Definition Description 2 </DD>
- </DL>
- This datalist will be displayed as
- Definition Term 1
- Definition Description 1
- Definition Description 2
- Definition Term 2
- Definition Description 1
- Definition Description 2
Advertisement
Add Comment
Please, Sign In to add comment