Subscribe:

Tuesday

Use Definition Lists

The third form of record you can make in HTML is known as a description record. As its name indicates, you might use a description record to demonstrate conditions and their descriptions. For example, in the following record, the phrase is detailed on the first range, and then the description is on the range below the phrase.

W3C
The Community Large Web Range was designed in 1994 to create requirements and methods for the Community Large Web.

HTML
Hypertext Markup Terminology is the publishing language used to make records for the Community Large Web.
A description record performs just like this one, where you use HTML labels to recognize the conditions and descriptions for each of the record products.
                                
The code to create the page shown in the preceding illustration looks like this:
<dl>
<dt>W3C</dt>
<dd>The World Wide Web Consortium was created in 1994 to develop
standards and protocols for the World Wide Web.</dd>
<dt>HTML</dt>
<dd>Hypertext Markup Language is the authoring language used to
create documents for the World Wide Web.</dd>
</dl>

You can use more than one dd for each dt if you need to; the technique will just basically indent each range below the dt.

0 comments:

Post a Comment