Definition lists is used to define the term and with its description. It starts with the <DL> and endswith the </DL> tag The data term is defined inside the <DT> and </DT> tag. The data description is defined inside the tag <DD>and </DD>. It has no attributes.
This will produce the following output
It is used for creating menu list. It is created with the help of <menu></menu> and <li></li>.
Example
<html>
<head>
<title>
menu list
</title>
</head>
<body>
<menu>
<li>ordered list</li>
<li>unordered list</li>
</menu>
</body>
</html>
The output of the above code is
The output of the above
Tags of Definition List
- <DL></DL>
- <DT></DT>
- <DD></DD>
Example
<html>
<head>
<title>
definition list
</title>
</head>
<body>
<dl>
<dt>Word</dt>
<dd> word is a word processor</dd>
<dt>excel</dt>
<dd> Excel is a spread sheet</dd>
</dl>
</body>
</html>
This will produce the following output
Menu List
Example
<html>
<head>
<title>
menu list
</title>
</head>
<body>
<menu>
<li>ordered list</li>
<li>unordered list</li>
</menu>
</body>
</html>
The output of the above code is
Directory List
The <dir> tag is used to list directory list. Directory List is created with the help of the <DIR></DIR> tag. Items appears with the help of the <li></li>.
Example
<html>
<head>
<title>
directory list
</title>
</head>
<body>
<dir>
<li>c:\abc\bat</li>
<li>Bill No. 567</li>
</dir>
</body>
</html>
The output of the above
Comments
Post a Comment