home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 May / Gamestar_73_2005-05_dvd.iso / Programy / amaya / amaya-Win98-8.7.3.exe / _SETUP.1 / creating_nested_structures.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-02-19  |  3.8 KB  |  105 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7.   <meta content="text/html; charset=iso-8859-1" />
  8.   <meta name="GENERATOR" content="amaya 8.2+, see http://www.w3.org/Amaya/" />
  9.   <title>Creating Nested Structures</title>
  10.   <style type="text/css">
  11.   </style>
  12.   <link href="../style.css" rel="stylesheet" type="text/css" />
  13. </head>
  14.  
  15. <body xml:lang="en" lang="en">
  16.  
  17. <table border="0" width="100%" summary="toc">
  18.   <tbody>
  19.     <tr>
  20.       <td><img alt="W3C" src="../../images/w3c_home" /> <img alt="Amaya"
  21.         src="../../images/amaya.gif" /></td>
  22.       <td><p align="right"><a href="exiting_anchors.html" accesskey="p"><img
  23.         alt="previous" src="../../images/left.gif" /></a> <a
  24.         href="../Creating.html" accesskey="t"><img alt="top"
  25.         src="../../images/up.gif" /></a> <a
  26.         href="changing_the_document_title.html" accesskey="n"><img alt="next"
  27.         src="../../images/right.gif" /></a></p>
  28.       </td>
  29.     </tr>
  30.   </tbody>
  31. </table>
  32.  
  33. <div id="page_body">
  34. <h1>Creating Nested Structures</h1>
  35.  
  36. <p>When the insertion point is in an empty element, pressing the
  37. <strong>Enter</strong> key replaces that element by another empty element at
  38. the next higher level in the document structure. This feature allows you to
  39. create complex, nested structures very quickly.</p>
  40.  
  41. <p>As an example, consider the following structure:</p>
  42. <ul>
  43.   <li>The first item in the list
  44.     <p>A paragraph in the first item</p>
  45.   </li>
  46.   <li>The second item in the list.
  47.     <ul>
  48.       <li>First item in the nested list.</li>
  49.       <li>Second item in the nested list.</li>
  50.     </ul>
  51.   </li>
  52.   <li>Last item in the list</li>
  53. </ul>
  54.  
  55. <p class="ProcedureCaption">To create the above structure:</p>
  56. <ol>
  57.   <li>Click the <strong>Bullet List</strong> button to create the first item
  58.     in the list.
  59.     <p></p>
  60.   </li>
  61.   <li>Type in the list item text, and press the <strong>Enter</strong> key
  62.     once. Amaya creates a new paragraph within the list item.
  63.     <p></p>
  64.   </li>
  65.   <li>Type the paragraph text, and press the <strong>Enter</strong> key
  66.     twice. The first <strong>Enter</strong> creates another paragraph
  67.     element, but the second <strong>Enter</strong> removes that paragraph and
  68.     creates a second bullet list item in the original list.
  69.     <p></p>
  70.   </li>
  71.   <li>Type the second list item.
  72.     <p></p>
  73.   </li>
  74.   <li>Click the <strong>Bullet List</strong> button to create a new list. The
  75.     new list is automatically nested within the first list.
  76.     <p></p>
  77.   </li>
  78.   <li>Type the text for the first item in the new list, and press the
  79.     <strong>Enter</strong> key twice to create a new item in the nested list.
  80.     <p></p>
  81.   </li>
  82.   <li>Type the text for the second list item, and press the
  83.     <strong>Enter</strong> key four times to create a new list item in the
  84.     original list.
  85.     <p></p>
  86.   </li>
  87.   <li>Type the final list item, and then press the <strong>Enter</strong> key
  88.     three times to close the original list and start a new paragraph.
  89.     <p></p>
  90.   </li>
  91. </ol>
  92.  
  93. <p>The <strong>Enter</strong> key works in the same way when the insertion
  94. point is at the beginning of an element, but it creates new elements before
  95. the current element. For example, to add a list item between the first two
  96. items in the above structure, place the cursor at the beginning of the second
  97. list item, and press the <strong>Enter</strong> key twice.</p>
  98.  
  99. <p class="Note"><b>Note</b>:  This use of the <strong>Enter</strong> key
  100. does not apply only to lists and paragraphs, but to all elements. For
  101. example, it is very helpful for creating tables.</p>
  102. </div>
  103. </body>
  104. </html>
  105.