The frame and rules properties of the table tag can control the display of borders. The frame attribute controls the visibility of the four borders on the outermost periphery of the table, while rules controls the visibility of the borders inside the table.
The value and meaning of the frame attribute are as follows:
* void - default value. Indicates that the outermost border of the table is not displayed.
* box - Show four borders at the same time.
* border - Show four borders at the same time.
* above - Show only the top border.
* below - Show only the bottom border.
* lhs - Show only the left border.
* rhs - Show only the right border.
* hsides - Show only two borders in the horizontal direction.
* vsides - Show only two borders on the vertical side.
There are five desirable values for the rules attribute, namely:
* none - default value. No border.
* groups - Add borders to row or column groups.
* rows - Add borders to rows.
* cols - Add borders to the column.
* all - add borders to all rows, columns, cells
Code example:
XML/HTML Code Copy content to clipboard