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. Just like missing tags can cause problems, missing HTML attributes on tables can lead to funky looking designs. ... By adding in the cellspacing and cellpadding attributes to the table—and setting both to. TABLE. TABLE - (table): The TABLE tag defines a table. Inside the TABLE tag, use the TR tag to define rows in the table, use the TH tag to define row or column headings, and use the TD tag to define table cells. The TABLE tag can also contain a CAPTION tag, which specifies the caption for the table.