|
The example of dd tag in HTML
<dl>
<dt>Category one</dt>
<dd>HTML - stands for HyperText Markup Language</dd>
<dt>Category two</dt>
<dd>XHTML - stands Extensible Hypertext Markup Language</dd>
</dl>
Working example of dd tag
- Category one
- HTML - stands for HyperText Markup Language
- Category two
- XHTML - stands Extensible Hypertext Markup Language
The HTML dd tag is used to define the content description of definition lists.
Dd tag is used with dl (definition tag) and dt tag (define items).
Dd tag is written inside the dl and dt tags. Dd tag is used for description that contain in block level.
Dd tag is supported by all web browsers. These web browsers are Internet Explorer, firefox, opera and google chrome.
Dd tag supports common attribute and event attributes.
Common Attribute of dd Tag
| Attribute |
Value |
Explaination |
| id |
ID |
unique id document for element |
| class |
classname |
list of CSS classes |
| style |
StyleSheet |
associated style information of style tags |
| title |
Text |
information about an element shown on mouse over cursor |
| lang |
LanguageCode |
Language Code of the element |
| dir |
ltr rtl |
direction for weak/neutral text |
Events Attribute of dd Tag
| Attribute |
Value |
Explaination |
| onclick |
event |
Event Fire on mouse button was clicked |
| ondblclick |
event |
Event Fire on a mouse button was double clicked |
| onmousedown |
event |
Event Fire on a mouse button was pressed down |
| onmouseup |
event |
Event Fire on a mouse button was released |
| onmouseover |
event |
Event Fire on a mouse was moved onto |
| onmousemove |
event |
Event Fire on a mouse was moved within |
| onmouseout |
event |
Event Fire on a mouse was moved away |
| onkeypress |
event |
Event Fire on a key was pressed and released |
| onkeydown |
event |
Event Fire on a key was pressed down |
| onkeyup |
event |
Event Fire on a key was released |
|