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

Align

                    Align attribute can appear inside the <TABLE>, <TR> or <TD> tags. If this appears inside the
                    <TABLE> tag, then it aligns the whole table. If this appears inside the <TR> or <TD> tags,
                    it indicates whether text inside the table cell(s) is aligned to the left side of the cell, to the right
                    side of the cell or in the centre within the cell. Values of ALIGN attribute are ‘Left’, ‘Center’ and
                    ‘Right’.

                    Syntax: <TABLE BORDER = “3” ALIGN = “Right”>










                    Cellspacing

                    Cellspacing  attribute specifi es the spacing inserted between               Learn More
                    individual cells in a table.
                                                                                            By default, a browser uses a
                    Syntax: <TABLE BORDER = “10” CELLSPACING = “20”>.                        CELLPADDING of 1.

                    Cellpadding

                    Cellpadding  attribute sets the spacing between the border and the contents of the cell.
                    Syntax: <TABLE BORDER = “10” CELLPADDING = “20”>


























                    Height and Width

                    Height and width attribute is used to set the height
                    and width of a table to get the desired size.

                    Syntax:  <Table border=”2” bgcolor=”white”
                              height=250” width=”450”>







                    124
   131   132   133   134   135   136   137   138   139   140   141