Definition Lists
A definition list uses an indenting scheme to differentiate terms and definitions.
Opening and closing tags are required. Line breaks are not required in lists.
Each new item in the list assumes a new line.
<dl> - opening tag
</dl> - closing tag
Use definition term tag <dt> and </dt> for each new
term.
Use definition description tag <dd> and </dd> for
each description.
Code Example:
Here are a few meanings of some of the Web’s many
acronyms:<br>
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language</dd>
<dt>JPEG</dt>
<dd>Joint Photographic Experts’ Group</dd>
<dt>GIF</dt>
<dd>Graphic Interchange Format</dd>
<dt>PNG</dt>
<dd>Portable Network Graphics</dd>
</dl>
Result:
Here are a few definitions of some of the web's many acronyms:
- HTML
- HyperText Markup Language
- JPEG
- Joint Photographic Experts' Group
- GIF
- Graphic Interchange Format
- PNG
- Portable Network Graphics
|