SQL PHP HTML ASP JavaScript articles
 

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


Let us go for a practical use of definition list here.

How to reach my home town?
By Rail
Nearest railway station is 10 KM and station name is
By road
Well connected national highway passes through my home town
By Air
Nearest airport is at a distance of 60 KM and ..

Now please develop the code for this ..

Google+
         Lists In HTML  | Ordered Lists  | UnOrdered Lists  | Data Lists
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked


Join Our Email List
Email:  
For Email Newsletters you can trust



List tags
HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer