There are two elements available for creating tables in a concept topic: <simpletable> and <table>.
Use the <simpletable> element whenever you can, especially for short tables. Use the <table> element for larger tables or tables that need more complex formatting.
The elements contained in the <simpletable> element include:
<sthead> |
The container element for the header row of a <simpletable> element. The <sthead> element contains the <stentry> element and is optional. There can only be one <sthead> element in a <simpletable> element. |
<strow> |
The container element for the body rows of a <simpletable> element. The <strow> element contains the <stentry> element. A <simpletable> element can have one or more <strow> elements. |
<stentry> |
The container element for a single cell in a <simpletable> element. The <stentry> element contains the text of a cell in the <simpletable> element, which should be wrapped in a <p> element according to best practice. |
This lesson will cover the basics of using the <simpletable> element.
Continue using the file lesson2/l_concept_images_tables_start.dita to add the <simpletable> and <table> elements.
Note:
If you are using a DITA editor, some child elements of the <simpletable> element will automatically be inserted as you work through the examples.