##### 34.4.3.2 Using a dedicated format for table summary or title

You can designate a paragraph format whose content will be the value of the summary attribute for the next table in your document. For example, suppose you use paragraph format TblSum for this purpose:

    [HTMLParaStyles]
    ;  Summary makes current para content into summary for table tag
    TblSum=Summary Delete

Somewhere in each table (or just before the table) you would insert a TblSum paragraph containing the summary for that table. Probably you would make that paragraph conditional so it would not appear in print. The Delete property would exclude the paragraph (as such) from HTML output; HTML source would show the text of the TblSum paragraph as the value for the summary attribute of the <table> element.

If some tables in your document have no captions, you might want to use the HTML title attribute also, to provide a title. Designate a paragraph format whose content will be the title for any table in which (or just before which) you place an instance of the paragraph. For example, suppose you use paragraph format TblTtl for this purpose:

    [HTMLParaStyles]
    ;  TableTitle makes current para content into title attr for table
    TblTtl=TableTitle Delete

The content of the TblTtl paragraph would become the text of the title attribute of the HTML <table> tag.

Previous Topic: 34.4.3.1 Using a table attribute for summary or title

Next Topic: 34.4.3.3 Using a PI marker for table summary or title

Parent Topic: 34.4.3 Providing table summary and title information

Sibling Topics:

34.4.3.1 Using a table attribute for summary or title

34.4.3.3 Using a PI marker for table summary or title