Page 135 - Viva ICSE Computer Studies 7 : E-book
P. 135

Attributes of <Table> Tag

                    Let’s learn about various attributes of <Table> tag.

                    Border

                    The border attribute appears in the <Table> tag. If it is present, borders are drawn around all
                    the table cells. If it is absent, there are no borders, but by default space is left for borders.

                    Syntax: <Table border=”4”>
                    The larger the value, the thicker will be the border.

                    Bordercolor

                    The bordercolor attribute is used to set the colour of a table’s border.
                    Syntax: <Table border=3 bordercolor=”green”>


























                    Bgcolor

                    The bgcolor attribute is used to set the background of a table. We can also assign a diff erent
                    background to a row, column or a cell.
                    Syntax: <Table border=3 bgcolor=”green”>



























                                                                                                                    123
   130   131   132   133   134   135   136   137   138   139   140