Breaking News

Definition List

A definition list is not a list of items. This is a list of terms and explanation of the terms. A definition liststarts with the <dl> tag. Each definition-list term starts with the <dt> tag. Each definition-list definition starts with the <dd> tag.
Inside a definitionlist definition (the <dd> tag) you can put paragraphs, line breaks, images, links, other lists, etc.
 
<dl> tag is used for definition list. Between <dl> & </dl> you have to enter list of items.
 
<dt> tag is used for list item terms. Each list item is surrounded by <dt> & </dt> tag.
 
<dd> tag is used for the definition-list definition.
 
 
Format:
<dl> <dt> Term1 </dt> <dd> Term definition.<dd> …….<dt> itemn </dt>….</dl>
 
Example Output

<dl>
<dt>Books</dt>
<dd>Books are the great friends.</dd>
<dt>Pen</dt>
<dd>Pen is the biggest power</dd>
</dl>

Books
Books are the great friends.
Pen
Pen is the biggest power
 
Just write/copy this example inside the body of the HTML file and save the file and open in the browser and see how it looks.
 
So now you have learned how to create the ordered list in the web page. Now you have done a lot in the list now you saw how simple list are.
 

Check Also

Attributes

Attributes   Tags Attribute Value Description <table> align left,center,right Aligns the table. Deprecated. Use styles …