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:
- Create a table element, with
Html_Element_Table_Create(). - Create a table row and fill it with cells, using
Html_Table_Row_Create(),Html_Table_Cell_Create(), andHtml_Table_Row_Cell_Add(). - Repeat step 2 for each additional row. The rows appear in the order that they are added to the table.
- 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.