HTML 5 <dd> Tag
<dd> tag is used for specifying a definition description in a definition list.
A definition list is similar to other lists but in a definition list, each list item contains two or more entries; a term (
dt) and a description (
Note that a definition term can be linked to more than one description. There can also be multiple terms for a single description (for example, in the case where there are multiple spellings of a term being defined). In this case, each term must be enclosed in its own set of
dt tags (there shouldn't be any more than one term within a single
Also note that the defintion term (
dt) does not indicate that its contents are a term being defined, but this can be indicated using the
Here are two examples of
- Example 1: Contains a list of terms and their definitions. Note the use of
dfnto indicate that this is the defining instance of the term.
- Example 2: Here, a term is linked to three values.
HTML tags can contain one or more attributes. Attributes are added to a tag to provide the browser with more information about how the tag should appear or behave. Attributes consist of a name and a value separated by an equals (=) sign, with the value surrounded by double quotes. Here's an example,
There are 3 kinds of attributes that you can add to your HTML tags: Element-specific, global, and event handler content attributes.
The attributes that you can add to this tag are listed below.
The following table shows the attributes that are specific to this tag/element.
The following attributes are standard across all HTML 5 tags (although the
tabindex attribute does not apply to
For a full explanation of these attributes, see HTML 5 global attributes.
Event Handler Content Attributes
Event handler content attributes enable you to invoke a script from within your HTML. The script is invoked when a certain "event" occurs. Each event handler content attribute deals with a different event.
For a full list of event handlers, see HTML 5 event handler content attributes.