SQL PHP HTML JavaScript articles and free code
 
 

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

                 <DD> Definition Description 1

                 <DD> Definition Description 2

             <DT> Definition Term 2

                 <DD> Definition Description 1

                 <DD> Definition Description 2

             </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


         Lists In HTML  | Ordered Lists  | UnOrdered Lists  | Data Lists
Discuss this tutorial at forum

List of HTML Tutorials

 

Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript
List of HTML Tutorial
HTML Tags
Color Chart
HTML Calendar
Tags on web page
Web Design
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.