HTML HTML Tutorial HTML Forms HTML Graphics HTML Media HTML APIs HTML Tags



HTML Tag: dd

The HTML tag <dd> is used to define a description or value in a description list. It is used in conjunction with the <dl> (description list) and <dt> (term or name in a description list) tags.

The <dd> tag is used to provide a description or value for the term or name defined in the <dt> tag. It is typically used in glossaries, FAQs, and other similar documents where a list of terms and their definitions are provided.

Here is an example of how the <dd> tag can be used:

<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2</dt>
<dd>Definition 2</dd>
</dl>

In the example above, the <dl> tag is used to define a description list. The <dt> tag is used to define the term or name, and the <dd> tag is used to define the description or value.

It is important to note that the <dd> tag should always be used in conjunction with the <dt> tag. If the <dd> tag is used without a corresponding <dt> tag, it may result in invalid HTML markup.

Here are some examples of how the <dd> tag can be used:

<dl>
<dt>HTML</dt>
<dd>Hypertext Markup Language</dd>
<dt>CSS</dt>
<dd>Cascading Style Sheets</dd>
<dt>JavaScript</dt>
<dd>A programming language used to create interactive effects within web browsers.</dd>
</dl>

In the example above, a description list is created with three terms and their corresponding definitions. The <dt> tag is used to define the term, and the <dd> tag is used to define the description or value.

Overall, the <dd> tag is a useful HTML tag for creating description lists and providing descriptions or values for terms or names.

References:

Activity