HTML Definition Lists-for beginners
HTML and XHTML support a list style which is called definition lists where entries are listed like in a dictionary or encyclopedia. the definition list is the ideal way to present a glossary, list of items, or other name/ value list.
definition List makes use the three tags such;-
<dl> -defines the start of the list
<dt> -a term
<dd> -term definition
<dl> -defines the end of the list
example;
<DOCTYPE html>
<html>
<head>
<title>HTML Definition List</title>
</head>
</body>
<dl>
<dt><b>HTML</b></dt>
<dd>This stands for Hyper Text Markup Language </dd>
<dt><b>HTTP</b></db>
<dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>
output
HTML
This stands for Hyper Text Markup Language
HTTP
This stands for Hyper Text Transfer Protocol
prepared by IBRAHIM MCHUCHURI
definition List makes use the three tags such;-
<dl> -defines the start of the list
<dt> -a term
<dd> -term definition
<dl> -defines the end of the list
example;
<DOCTYPE html>
<html>
<head>
<title>HTML Definition List</title>
</head>
</body>
<dl>
<dt><b>HTML</b></dt>
<dd>This stands for Hyper Text Markup Language </dd>
<dt><b>HTTP</b></db>
<dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>
output
HTML
This stands for Hyper Text Markup Language
HTTP
This stands for Hyper Text Transfer Protocol
prepared by IBRAHIM MCHUCHURI
HTML Definition Lists-for beginners
Reviewed by Unknown
on
May 11, 2017
Rating:
No comments