Tuesday, October 17, 2017

CLASS 10 - HOW TO CREATE DEFINITION OR DESCRIPTION LIST IN HTML

What is definition list or description list in HTML? How we create those things in HTML?

<dl>, <dt>, <dd> elements/tags are used in HTML for creating definition or description list in HTML.

File Name:  "new 2.html"

<html>
<body>
<h2>A Definition or Description List:</h2><hr>
<dl>
<dt>Tea</dt>
<dd>- brown drink</dd>
<dt>Milk</dt>
<dd>- white drink</dd>
<dt>Coffee</dt>
<dd>- black drink</dd>
<dt>Water</dt>
<dd>- colorless drink</dd>
</dl>
</body>
</html>

OUTPUT:




Watch the below video for more details on the above program:



*************************************************************************

No comments:

Post a Comment