×

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 <script> Tag

For embedding a client -side script, we use script tag in html tag. This <script> tag can be used for containing scripting statements. It can also point another external script file...

2 minutes read.

HTML &lt;body> alink Attribute

HTML <body> alink Attribute What is HTML? The HTML or HyperText Markup Language is used to design web pages. The file extension name for HTML file is ".html". It was released in...

2 minutes read.

HTML Youtube

<object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages. Example: <object width="100" height="100" data="bookmark.swf"></object> <embed> element: It defines an embedded...

1 minute read.

Responsive HTML5 and CSS3 Tutorial

Introduction to HTML5 Tutorial HTML5 is the latest and upgraded version of HTML. HTML is a hypertext markup language. Technically, it is not a programming language. It is a markup language. HTML...

17 minutes read.

HTML Anchor

HTML Anchor The HTML anchor tags define a hyperlink that links to other pages on one page. It can create hyperlinks to any web page and files, locations or any other...

3 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 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.

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 Date

The input element in HTML has several attributes. One of its attributes is the type attribute which creates a calendar in an order that a user can select a date...

5 minutes read.

HTML 5 Tutorial

What is HTML5? HTML5 is a programming language which stands for the acronym Hyper Text Markup Language 5. It is program that enables the appearance of web pages to be changed, as well as changes...

5 minutes read.

HTML Tutorial

Introduction This HTML tutorial helps beginners and professionals to learn HTML easily. HTML is a widely used web technology for website development. It stands for Hyper Text Markup Language. It is mainly used to...

7 minutes read.

HTML SVG

HTML SVG: SVG stands for Scalable Vector Graphics which defines the graphics for the web. It is a language for describing 2-D graphics in XML. Each drawn shape in SVG is...

1 minute read.

HTML <br> tag

HTML is referred to as Hyper Text Markup Language, which is the most popular language for creating Web pages. HTML explains the construction of a Web page. It contains a...

4 minutes read.

Html &lt;center> Tag

The term HTML refers to Hyper Text Markup Language. The most widely used markup language for making web pages is HTML. A structure of web page is described in HTML....

3 minutes read.

HTML <source> tag

For media attributes, such as <video> tag, <audio> tag, and <picture> tag, we use the <source> tag in html for adding such type of multiple media html elements in our...

4 minutes read.

HTML Audio

HTML AUDIO: HTML5 provides a method to embed the audio file into a webpage by using HTML5. Before HTML5 audio files is used to play on the browser with the help of...

1 minute 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 Layouts

HTML Layouts HTML templates provide a way for well-managed, well-structured responsive web pages to be organized. We could say that the HTML layout specifies how web pages can be set up....

4 minutes read.

HTML Headings

The titles and subtitles of our webpages are known as HTML headings. Let’s not talk about webpages but giving heading to almost everything like normal paragraphs, articles or let it...

2 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.