Venciity

DL ,DT ,DD

Jan 27th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Definition and Usage
  2. The <dl> tag defines a description list.
  3.  
  4. The <dl> tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name).
  5.  
  6.  
  7.  
  8.  
  9. Data Lists in html
  10. 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.
  11.  
  12. Attributes of <DL> .. </DL> :
  13.  
  14. <DT>: DT stands for Definition Term. This tags will be enclosed in <DL> ... </DL> tags alternatively.
  15.  
  16. <DD>: DD stands for Definition Description. This tags will be enclosed in <DL> ... </DL> tags alternatively.
  17.  
  18.  
  19.  
  20. Example:
  21.  
  22. <DL>
  23.  
  24. <DT> Definition Term 1 </DT>
  25.  
  26. <DD> Definition Description 1</DD>
  27.  
  28. <DD> Definition Description 2</DD>
  29.  
  30. <DT> Definition Term 2</DT>
  31.  
  32. <DD> Definition Description 1 </DD>
  33.  
  34. <DD> Definition Description 2 </DD>
  35.  
  36. </DL>
  37.  
  38. This datalist will be displayed as
  39. Definition Term 1
  40. Definition Description 1
  41. Definition Description 2
  42. Definition Term 2
  43. Definition Description 1
  44. Definition Description 2
Advertisement
Add Comment
Please, Sign In to add comment