dl dt dd

dl dt dd
The HTML <dl><dt>, and <dd> elements are for building definition lists. First you define the definition list, then the definition term, then the definition of that term. The terms and definitions continue in your definition list until your list is finished, then the closing tag for the <dl> is placed. You would use CSS to target the id attribute of the <dl> element to style all of the child elements in it(<dl>,<dd>) universally and intelligently. This way your lists look exactly the way you want them to.
HTML CODE EXAMPLE
<dl id="mydl">
  <dt>Apple</dt>
  <dd>A green or red fruit that grows on a tree.</dd>
  <dt>Grape</dt>
  <dd>A green or red fruit that grows on a vine.</dd>
</dl>
 
Apple
A green or red fruit that grows on a tree.
Grape
A green or red fruit that grows on a vine.

Attributes for this element:

datetime - the date or date-time the text was deleted
Possible Values:"date-time sysntax as defined here"
cite - refer to a URL that explains why the text was deleted
Possible Values: "URL string"
global attributes - global core attributes
See: list of global attributes

Event handlers for this element:

global event handlers - global event handler attributes
See: list of global event handlers


0 Response to "dl dt dd"

Post a Comment