<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
"http://docs.oasis-open.org/dita/v1.0.1/dtd/task.dtd">
<task id="how_to_add_a_table">
  <title>How to add a table</title>

  <shortdesc>This topic describes creating a table and includes selecting the
  correct element.</shortdesc>

  <prolog>
    <author>Stephen Ogley</author>

    <critdates>
      <created date="2006-07-26"/>
    </critdates>

    <metadata>
      <othermeta content="initial" name="status"/>
    </metadata>
  </prolog>

  <taskbody>
    <context><p>For historical reasons, DITA has two types of table, the
    <b>table</b> and the <b>simpletable</b>. We recommend only using the
    <b>table</b> element since it contains all of the facilities of the
    <b>simpletable</b>.</p><p>Tables may be nested within
    tables.</p></context>

    <steps>
      <step>
        <cmd>To create a table without a header row, place the cursor at a
        suitable position, click the down arrow on the <b>Add table</b> button
        and then select <b>table</b>. A 2-column table is created with a
        placeholder for a title.</cmd>
      </step>

      <step>
        <cmd>To create a table with a header row, place the cursor in an empty
        paragraph, right-click at the cursor position, select <b>Insert...</b>
        and then select <b>table(head)</b> from the right-hand pane.</cmd>
      </step>

      <step>
        <cmd>Type text in the title placeholder. If you do not want to include
        a table title, click the title placeholder to deselect the whole
        table, and then right-click it and select <b>Delete</b>.</cmd>
      </step>

      <step>
        <cmd>Use the DITA menu to add rows or columns to the table or to
        remove or reposition them.</cmd>
      </step>
    </steps>
  </taskbody>
</task>