HTML5 > Structures

Description list in HTML5

How to present conversation on the web pages?


The description list on the web pages is presented with the help of <dl>, <dt>, and <dd> tags. Where <dl> tag is the parent tag, <dt> is used to keep the description term (name or field name) and <dd> is used to keep the description of each term (field).

<body>
    Some content goes here
    <dl>
        <dt> Full Name</dt>
        <dd>John Taggy.</dd>
        <dt>Address</dt>
        <dd>New York,USA.</dd>
    </dl>
Some content goes here
</body>

In the above code snippet, <dl> tag is the the parent tag, content in the <dt> tag represents the description term  and the content in the <dd> tag represents the descripion of field in the webpage.

OUTPUT

 Views: 4668 | Post Order: 61



Write for us






Hosting Recommendations