Page 134 - CA_165_V2.0_Flipbook
P. 134

<TABLE ALIGN = "Value">
                  For example:

                  <TABLE ALIGN = "CENTER">
                  The following table lists the attribute of the <TABLE> tag, its possible values, and a description of its
                  purpose:

                    Attribute Name              Value                                Description
                   BORDER              Numeric value            Specifies the width of the border around the table in
                                                                pixels.

                                                                                            Not supported in HTML5
                   CELLPADDING         Numeric value            Specifies  the  space  between  cell  content  and  cell
                                                                borders in pixels.
                                                                Not supported in HTML5
                   CELLSPACING         Numeric value            Specifies the space between individual cells in a table
                                                                in pixels.

                                                                                            Not supported in HTML5
                   WIDTH               Numeric value (in pixels  Specifies the width of the table.
                                       or %)
                   HEIGHT              Numeric value (in pixels  Specifies the height of the table.
                                       or %)
                   BGCOLOR             Color name, Hex code,  Specifies the background color of the table.
                                       RGB value                                            Not supported in HTML5

                   ALIGN               Left, Right, Center      Specifies the alignment of the table.
                                                                                            Not supported in HTML5


                  Inserting an Image
                  An image can also be inserted inside a table or any cell of the table by using <IMG> tag. For example:

                    <TABLE >

                    <TR><TH>  <IMG SRC= "Filename" > </TH>
                    ..........................................

                    </TR>
                    </TABLE>
                  The following HTML code uses the <TABLE> tag to create a structured layout, including headers and rows
                  of data with an image:

                  <HTML>

                  <HEAD>
                  <TITLE> Working with Table</TITLE>

                  </HEAD>

                  <BODY BGCOLOR = "YELLOW">


                   132   Touchpad Computer Applications-X
   129   130   131   132   133   134   135   136   137   138   139