×

Html <dd> Tag

In an HTML description list, an item's definition or description is indicated using the definition description ("dd" tag).

A <dd> tag can contain paragraphs, line breaks, images, links, and lists. It is used in combination with the <dl> tag, which describes the description list, and the <dt> tag, which describes the terms in the description list. The end tag is not necessary for the <dd> tag, but the starting tag is important.

As well as block elements, the <dd> tag also supports inline elements.

Syntax

The <dd> tag is written in pairs. Between the opening (dd) and closing (/dd) tags, content is located like this:

<dd>write your content here </dd>

Example

<!DOCTYPE html>
<html>
<body>
<h1>Tutorial and Example</h1>
<h2>HTML dd Tag</h2>
<dl>
<dt>Tutorial and Example</dt>
<dd>It is an extensive classroom programme
for enhancing Web Development Skills</dd>
<br>
<dt>DS Algo</dt>
<dd>It is a course designed for beginners
in DS Algo</dd>
<br>
<dt>Interview Preparation</dt>
<dd>It is a course designed for preparation
of interviews in top product-based companies.</dd>
</dl>
</body>
</html> 

Output:

Html dd Tag

Accessibility Concerns

Making websites accessible means ensuring that everyone, including those with hearing, vision, cognitive, physical, or neurological impairments, can use them and understand them properly.

In addition to this, accessibility is crucial for good UX and SEO. The HTML tags must be contained in parent tags, otherwise screen readers won't be able to read them.

A specific hierarchy must be followed in the definition list. A definition list is defined by the dl tag, which should contain an alternating pair of dt and dd elements. 

There must be a dd element for each dt element. The dt and dd elements are the only elements that can be written inside the definition list.

This makes it possible for users to comprehend the proper hierarchy of the information which is attempting to convey.

Attributes

Both Global Attributes and Event Attributes are supported by the dd tag.
The dd tag has the following distinctive feature:

No wrap

This attribute has two possible values: yes and no. If the value is yes, the definition text will not wrap, and vice versa. The default value of No Wrap is No.

How <dd> tag is useable in HTML?

For writing the definition of the terms in a description list, use the HTML dd tag. Its <dd> tag must always be contained within an <dl> element, and it should be followed by a <dt> tag or another <dd> tag. The another dd tag is used when there are multiple descriptions for a single term.
Similar to a div tag, a dd tag also enables you to add paragraphs, pictures, links, pictures, and even more lists. As well as block elements, the <dd> tag also supports inline elements.

What is <dl> tag?

It defines the description list.

There are two or more entries for each list item in a definition list, association list, or description list: a term (dt), and a description (dd).

An important point to remember is that a definition term can have multiple connections to descriptions. Each term must have its own set of dt tags (no more than one term should be contained within a single dt element).

Additionally, keep in mind that the definition term (dt) does not indicate the term which is to be defined. HTML offers the DFN tag to do this. 

Syntax
The dt and dd elements are inserted between the start and end tags of the <dl> tag, which is written as<dl>….  </dl>. How many of those components there are will depend on how many definition terms and descriptions there are in the list.

<dl>Here write your definable  list </dl>

What is <dt> tag?

A <dt> element must be used inside a <dl> HTML element because it defines a term in a description or definition list. However, multiple dt elements in a row indicate multiple terms that are all defined by the immediately following dd element. It is typically followed by a dd element.

It should be noted that a definition term can be connected to multiple descriptions. Additionally, different terms may be used to describe the same thing (for example, in the case where there are multiple spellings of a term being defined). In this situation, each term must have its own set of dt tags. There should be no more than one term contained within a single dt element.

Syntax
<dt> Write here your definable term </dt>

Browser Compatibility

Chrome

Firefox

Safari

Opera Mini

Conclusion

The <dd> tag in HTML is used to indicate the definition or description of an item in a description list. A <dd> tag can contain paragraphs, line breaks, images, links, and lists. It is used in combination with the <dl> tag, which describes the description list.


Related Topics

HTML &lt;blink> Tag

In HTML, the blink tag is used to create the text which flashes. The blink tag is an inline element in HTML. It is observed that the blink tag used...

2 minutes read.

How to add Google Translate Button on your Webpage?

Google translator is a multi-language translator used for translating the webpage. Google develops it. In today's digital age, it is essential because information is available worldwide in some specific language...

5 minutes read.

HTML City tag

HTML <City> tag HTML < cite > tag specifies a citation, a reference or title to a creative work, quoted content, books, websites, a research paper, a blog post, a painting,...

3 minutes read.

HTML <address> Tag

Hyper Text Markup Language, HTML is the best markup language for creating Web pages. HTML consists of a wide variety of elements. In all of these elements, one element is...

4 minutes read.

Most Commonly used Tags in HTML

In this tutorial, we'll look at the most popular HTML tags. We know HTML is a fundamental requirement for creating a website. As a result, it is essential to remember...

9 minutes read.

HTML <strike> tag

The HTML <strike> tag is used to specifies strikethrough text. The tag is deprecated now and <del> tag is used in HTML files instead of it. All the global and...

2 minutes read.

HTML <sub> tag

The sub element in HTML is used to describe one or more subscript texts. If The sub tag shows the text which is presented in a smaller font and below...

2 minutes read.

HTML <summary> tag

When we simply want to show the primary heading or topic name of hidden detailed material to users, then we can achieved this by using the summary tag. This makes it...

2 minutes read.

HTML Canvas

HTML Canvas: Using JavaScript, the < canvas > tag in HTML is used for drawing graphics on web page. It can be used to draw routes, boxes, text, gradient, and...

3 minutes read.

HTML Forms

Forms are required when we want to collect data from the user. Html forms consists of different fields to take user inputs such as: input, text area, checkbox, password, radio...

4 minutes read.

HTML <style> tag

The section of information that we want to style is contained in html style tag. It includes CSS, which is used to design the text and images in the web page. Syntax: <head> <title>…………....

3 minutes read.

Difference between HTML and DHTML

Introduction to HTML HTML stands for Hypertext Markup Language. It is a standard web language used to create web pages and applications. HTML is used to define the structure and content...

4 minutes read.

HTML <table> tag

The Table element If we want to show the data and information in a two-dimensional table with rows and columns, then we can achieve this by using the HTML element <table>. Syntax: <body> <table> <thead> <tr> <thcolspan="#">………….</th> </tr> </thead> <tbody> <tr> <td>……….</td> <td>……….</td> </tr> </tbody> </table> </body> Example: <!DOCTYPE...

9 minutes read.

HTML <body> tag

HTML means Hyper Text Markup Language, which is most preferred for making Web pages. It explains how a Web page is put together. There are many different elements in HTML,...

3 minutes read.

HTML Id Attribute

The HTML id attribute represents the unique identifier for an element of the HTML document. Each element has its unique identifier. The id attribute is a global attribute that can be...

12 minutes read.

HTML <sup> Tag

The HTML sup element is used to describe one or more superscript contents. The sup tag shows a text which is presented above the regular line and half the length...

2 minutes read.

HTML Unordered List

In HTML, we have <ul> tag which defines the unordered list. And it is also known as bulleted list, because as we know it is not ordered list therefore it...

2 minutes read.

HTML <section> tag

The section element in HTML is used to define sections in a document. Syntax of Section Tag: <body> <h1>……….</h1> <section> <h2>……….</h2> <p> …………………………</p> </section> <section> <h2>………..</h2> <p>…………………………. <p> </section> </body> Examples of Section Tag Example 1: In this example, we use the HTML "section" element...

3 minutes read.

Design a tribute page using HTML and CSS

A tribute page is a webpage based on a person who inspired us in our life. In this article, we will create a webpage of Mahatma Gandhi. We are going...

5 minutes read.

Html Wbr Tag

The Line Break Opportunity element A word break opportunity is a place in text from where the browser breaks a line. This opportunity is represented by the element wbr in the...

2 minutes read.