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.
Practice
Inside the <conbody> element after the <fig> element, add a <simpletable> element as shown in the following example:
The <stentry> element represents a single cell. The number of <stentry> elements inside the <sthead> element will determine how many columns will be in your <simpletable> element.
Each <stentry> element you added follows the best practice of wrapping a <p> element around the text.
After the <sthead> element, add the <strow> element as shown in the following example:
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.