Marking up tables
After working through this section, you should be able to:
Mark up a table
Mark up heading and content cells
Mark up quoted content in a table cell
Merge cells horizontally and vertically
Mark the end of a table.
Marking up a table
The pattern for tables is as follows:
On a new line, the
TABLE
keywordBelow it, indented, the
TR
(table row) keywordBelow it, indented, either the
TH
(table heading) orTC
(table content) keyword for each cell in the rowBelow each of those, indented, the content of the cell
To mark the end of a table, unindent the text.
Example
will look like this in View mode:
Marking up quoted content
The pattern for quoted content is as follows:
On a new line inside a
TH
orTC
block, theQUOTE
keywordOptionally,
{startQuote “}
immediately after (no space after the keyword)Below it, indented, the keyword of the quoted element
Below that, indented, the content of the quoted element
To mark the end of the quote, unindent the text.
The above is the same logic as for Marking up the structure, with the addition of the QUOTE
keyword being the only difference.
Example
will look like this in View mode:
Merging cells horizontally
To merge cells horizontally, we use the colspan
keyword, as follows:
Immediately after either
TH
orTC
(no space),{colspan
The total number of cells to merge horizontally, e.g.
3
The closing
}
.
Example
will look like this in View mode:
Note how the first row in Edit mode only has one TH
.
Merging cells vertically
To merge cells vertically, we use the rowspan
keyword, as follows:
Immediately after either
TH
orTC
(no space),{rowspan
The total number of cells to merge vertically, e.g.
3
The closing
}
.
Example
will look like this in View mode:
Note how the third row in Edit mode only has one TC
, which will be in the second column.
If {rowspan 2}
had been applied to the second column in the second row instead, the third row's one TC
would be in the first column in View mode, but unchanged in Edit mode.
Exercises
Structuring a table
Copy the text below and paste it into a practise document, then see the instructions that follow.
Insert the
TABLE
keyword before row 1, and indent all the rows under it.Insert the
TR
keyword before each row, and indent each row under it.In the first row, insert the
TH
keyword before the Big Heading, have it span all three columns, and indent the text below it.In the second row, insert the
TH
keyword before each Heading, and indent the text below it. You can delete the commas between the Headings.In the third row, use
TH
for the Subheading, and have it span two rows.Use
TC
for the remaining cells. You can delete the commas between them.
When you're done, it should look like this in View mode:
and like this in Edit mode:
Quoted content
Copy the text below and paste it into a practise document, then see the instructions that follow.
Insert
QUOTE{startQuote “}
before the start of both quotes (lines 9 and 19).Indent each quote under its keyword.
Delete the repeated
“
at the start of each quote.Model the first quote as section 2, including subsections (1) and (2), using the appropriate keywords and indentation.
Model the second quote as paragraph (a).
When you're done, it should look like this in View mode:
and like this in Edit mode:
Last updated