Page 97 - CA 165 ver 1.0 Class 10
P. 97

WIDTH and HEIGHT Attributes
                 These attributes are used to specify the size of the table. The value of Width and Height can be specified
                 by using an absolute value (in number or pixel) or a relative value (in percentage). Syntax to use the
                 WIDTH and HEIGHT attributes is as follows:

                   <TABLE BORDER = “Value” WIDTH=“Value” HEIGHT=“Value”>
                 For example:

                   <TABLE BORDER=“2” WIDTH=“85%” HEIGHT=“25%”>









                                                                             Table Width and Height.













                 BGCOLOR Attribute
                 This attribute is used to assign background colour to the entire table. The possible values of this attribute
                 is same as the value of BGCOLOR of BODY attribute. Syntax to use the BGCOLOR attribute is as follows:

                   <TABLE BGCOLOR = “Value”>
                 For example:

                   <TABLE BGCOLOR= “LIME”>




                                                                           Table with given
                                                                          background colour.



























                                                                                            More About HTML      95
   92   93   94   95   96   97   98   99   100   101   102