home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!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">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>Heading elements</title>
- <meta name="GENERATOR" content="amaya 8.2+, see http://www.w3.org/Amaya/" />
- <style type="text/css">
-
- </style>
- <link href="../style.css" rel="stylesheet" type="text/css" />
- </head>
-
- <body xml:lang="en" lang="en">
-
- <table border="0" width="100%" summary="toc">
- <tbody>
- <tr>
- <td><p><img border="0" alt="W3C" src="../../images/w3c_home" /> <img
- border="0" alt="Amaya" src="../../images/amaya.gif" /></p>
- </td>
- <td><p align="right"><a href="headings.html"><img alt="previous"
- border="0" src="../../images/left.gif" /></a> <a
- href="../HTML.html"><img alt="top" border="0"
- src="../../images/up.gif" /></a> <a href="address.html"><img
- alt="next" border="0" src="../../images/right.gif" /></a></p>
- </td>
- </tr>
- </tbody>
- </table>
-
- <div id="page_body">
- <h1>List elements</h1>
-
- <p>There are three types of list in HTML. The two simple types are ordered
- and unordered lists, and there is also a definition list. Lists are
- block-type structures, but they can be created within other lists.</p>
-
- <p>Example:</p>
- <dl>
- <dt>Definition list</dt>
- <dd>This is a definition list - it has definition terms (<code><a
- href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-DT">dt</a></code>)
- and definitions (<code><a
- href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-DD">dd</a></code>)
- as children.</dd>
- <dd>One definition term can be followed by a number of deifintiions.</dd>
- <dt>Ordered lists</dt>
- <dd>There are three types of list
- <ol>
- <li>Ordered Lists (<code><a
- href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-OL">ol</a></code>)</li>
- <li>Unordered Lists (<code><a
- href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-UL"
- name="UL" id="UL">ul</a></code>)</li>
- <li>Definition lists (<code><a
- href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-DL">dl</a></code>)</li>
- </ol>
- </dd>
- <dt>Unordered Lists</dt>
- <dd>Unordered lists and ordered lists share some characteristics:
- <ul>
- <li>Simple lists</li>
- <li>Both types have children which are list items (<code><a
- href="http://www.w3.org/TR/REC-html40/struct/lists.html#edef-LI">li</a></code>
- elements)</li>
- </ul>
- </dd>
- </dl>
-
- <p>The three types of list can all be created from the toolbar using the list
- buttons <img src="../../images/OList.gif" alt="Bulleted List" />, <img
- src="../../images/NumList.gif" alt="Numbered List" />, <img
- src="../../images/DL.gif" alt="Definition List" />. All types of list can be
- created from the <strong>XHTML</strong> menu, or using keyboard shortcuts.
- The default keyboard shortcuts for unix systems are <kbd>Ctrl h Ctrl l</kbd>
- for an ordered list, <kbd>Ctrl h Ctrl n</kbd> for an unordered list, and
- <kbd>Ctrl h Ctrl d</kbd> for a definition list.</p>
-
- <p><a href="../StyleSheets.html">Style sheets</a> can be used to change the
- presentation of lists, including changing the style of list bullets or using
- an image as a bullet, and changing the style of text, for example using a
- different font for definition terms and the actual definitions.</p>
- </div>
- </body>
- </html>
-