This is the official manual for the latest Org-mode release.

Table of Contents

Next: , Previous: Links in HTML export, Up: HTML export


12.6.7 Tables in HTML export

Org mode tables are exported to HTML using the table attributes defined in org-html-table-default-attributes. The default setting makes tables without cell borders and frame. If you would like to change this for individual tables, place something like the following before the table:

     #+CAPTION: This is a table with lines around and between cells
     #+ATTR_HTML: :border 2 :rules all :frame border

You can also group columns in the HTML output (see Column groups).

Below is a list of options for customizing tables HTML export.

org-html-table-align-individual-fields
Non-nil means attach style attributes for alignment to each table field.


org-html-table-caption-above
When non-nil, place caption string at the beginning of the table.


org-html-table-data-tags
The opening and ending tags for table data fields.


org-html-table-default-attributes
Default attributes and values which will be used in table tags.


org-html-table-header-tags
The opening and ending tags for table header fields.


org-html-table-row-tags
The opening and ending tags for table rows.


org-html-table-use-header-tags-for-first-column
Non-nil means format column one in tables with header tags.