Working with Tables

A table contains an arbitrary number of rows and columns, with each cell containing an element. The workflow for creating a table is:

  1. Create a table element, with Html_Element_Table_Create().
  2. Create a table row and fill it with cells, using Html_Table_Row_Create(), Html_Table_Cell_Create(), and Html_Table_Row_Cell_Add().
  3. Repeat step 2 for each additional row. The rows appear in the order that they are added to the table.
  4. Add the table element from step 1 to the page, with Html_Page_Element_Add().

You can set the color of a table border with Html_Table_Border_Color_Set().

The sample source for the HTML package contains an example of using a table. See the Sample Program.