• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Working with Links, Lists, a... > The <DL>, <DT>, <DD>, <DIR>, and <ME...

The <DL>, <DT>, <DD>, <DIR>, and <MENU> Elements

The <DL>, <DT>, and <DD> elements enable you to set up definition lists, which list terms and their definitions in pairs. You create a definition list with the <DL> element, and create items in this list using both the <DT> element to define a term and the <DD> element to give the term’s definition. The definition usually appears indented under the term being defined. Here’s an example:

(Listing 14-08.html on the web site)

<HTML> 
    <HEAD> 
        <TITLE> 
            A Definition List 
        </TITLE> 
    </HEAD> 
    <BODY> 
        <H1> 
            Creating A Definition List 
        </H1> 

        Buying a computer? Let's consider: 
        <DL>
					<DT>Price<DD>Keep this low!
					<DT>CPU Speed<DD>Processor speed
					<DT>RAM<DD>Random access memory
					<DT>Disk space<DD>Get plenty!
					<DT>CD-ROM/DVD speed<DD>Access speed for your CDs
					</DL> 
    </BODY> 
</HTML> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint