Definition Lists
Definition lists are ideal for glossaries or any other
situation where you have a word or phrase followed by a
related explanation or expansion of the facts.
- Definition lists use opening and closing DL tags to
enclose the entire list.
- The words that are being defined or featured
are given the tag DT (for Definition Term).
- You will probably want to add bold or other
formatting to the definition term to make the
text stand out.
- You may want to precede or follow the DT text tags
with the P (paragraph) or BR (break line) tag.
- Use the tag DD for the definition itself.
- Closing tags for DT and DD are not required but recommended.
Examples:
- Internet
- A system of networks that is connected together allowing
one computer to communicate with another, often in a
distant location.
- HTML
- Hypertext Markup Language, the standard code used as
the basis for all web pages. The current version is 4.
It will almost certainly be replaced by XML, which will
share many of HTML's characteristics. They are both based
on SGML.
- XML
- Extensible Markup Language. The next generation of
HTML. XML uses a Document Type Definition (DTD) to establish
its own tags.
Assignment:
- Save this file as F02_yourlastname.html
- Add an additional definition to the definition
list, under the others. Define the word: Desk.
Don't be at all concerned by the definition
you come up with. It could be anything. All
I want to see is that you understand and can
use the code.
- Save the file, and check it in your browser.
- Online students, send your file to me by
email.
© 2008 Dan Vaughan and its licensors. All rights reserved.