Your Ad Here

Creating Definition Listings IN HTML


In addition to items arranged in bulleted lists and numbered lists, HTML also lets you
create a definition list. As its name implies, a definition list is a list of terms, each followed by a definition.
The Web browser indents each definition on the next line below the term being defined,
A definition list is the only type of list that does not identify the individual list items using the start
and end list item tags (<li></li>). Instead, the definition list uses two new tags:
• <dt></dt> Start and end definition term tags denote the term to be described or defined. (The
start and end definition term tags are similar in function to the start and end list item tags used
to denote individual items in ordered and unordered lists.)
• <dd></dd> The start and end definition description tags denote one or more paragraphs of
indented descriptive text.
To create a definition list within the Web page HTML, insert the terms and definitions
between start and end definition list tags (<dl></dl>). For example, the following HTML
will create a two-term definition list as shown previously:

<html>
<head>
<title>Example of a Definition List</title>
</head>
<body>
<center><h2>Basic HTML</h2></center>
<dl>
<dt><b>Basic HTML Tags</b> </dt>
<dd>HTML tags are commands used by a Web browser to
display information in a browser window.
HTML tags are accepted by both Mac and Win versions
of the standard browser applications.</dd>
<dt><b>The Importance of the Title Tag </b> </dt>
<dd>The title tag represents the description
of a Web page to visitors to your Web site.
The title to a Web page appears in the title
bar of the Web browser window.</dd>
</dl>
</body>
</html>


0 comments:

Post a Comment

Popular Posts

Recent posts