Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
dt tag
dd tag
li tag
ol tag
ul tag
TAG: dl
<dl> ... </dl>
The
dl
tag delimits the start and stop of a definition list. This is a type of list where a term or phrase is followed by a definition or explanation.
This
dl
tag must be used with the
dt
tag which presents the term and the
dd
tag which presents the definition.
The exact appearance of a definition list can be browser dependent. Most browsers place the term on the left margin and then the definition is placed on the next line and the entire text is indented. However, if the term is short (three characters or less) the definition may start on the same line as the term. Also, the list is usually separated from any preceding and following text by paragraph breaks.
You can use the
ol
tag to create an ordered list and the
ul
tag to create an unordered list.
The separate closing tag is mandatory.
Attributes and Events
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>DevGuru XHTML dl Tag Example</title>
</head>
<body>
Definition Lists:
<
dl>
<dt>dl tag</dt>
<dd>definition list start and stop delimiter.</dd>
<dt>dt tag</dt>
<dd>presents the term or phrase to be defined.</dd>
<dt>dd tag</dt>
<dd>presents the definition for the term or phrase.</dd>
<
/dl
>
</body>
</html>
Output:
Definition Lists:
dl tag
definition list start and stop delimiter.
dt tag
presents the term or phrase to be defined.
dd tag
presents the definition for the term or phrase.
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information