Write down about different attributes of <Table> tag
with Description and Example
Answers
Answer:
see
Explanation:
Attributes of table:
The is a container tag. There are several attributes to improve the layout of the table. They are listed below:
(i) Cellspacing:
It is used to set the space between cells in a table. The value should be in pixels
(ii) Cellpadding: It is used to set the space between the contents of a cell and its border. The value should be in pixels.
(iii) Border: Border attribute with tag is used to specify the thickness of the border lines around the table. The value of the border attribute should be a non zero value in pixels. If its value is zero, HTML displays the table without border. The default value is Zero in most the browsers.
(iv) Bordercolor: It is used to apply the colour to the border lines.
(v) Align: It is used to set the position of the table within the browser window. Left is the default position. Right or center may be the value of align attribute
(vi) BGcoter: It is used to apply background colour to the table.
(vii) Height and Width: These two attributes are used to specify the height and width of a table in terms of pixels or percentage.