Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 44 - CoreGPT(Podar)_Flipbook_C8
P. 44

    BACKGROUND: The  BACKGROUND attribute is used in the  same way  as done  with  the

                          <BODY> tag. Just specify the URL or the directory path of the file and the file name as its
                          value in double quotes. For example,
                            <TABLE BACKGROUND="D:\Documents\Smiley.jpg">
                          HEIGHT and WIDTH: The HEIGHT and the WIDTH attributes are used for setting the height
                          and width of the table. The value can simply be given as 90 or 70 or any other number,

                          as it shows pixels of computer screen. The value of these attributes can also be given in
                          percentage, that is, 90%, etc. as it shows that the table will cover 90% area of the browser
                          window. For example,
                            <TABLE HEIGHT="90%" WIDTH="70%">

                          CELLSPACING: The CELLSPACING attribute is used to define the minimum distance between
                          two adjacent cells in a table. This attribute takes value in pixels. The default value taken by
                          the attribute is 2. For example,

                            <TABLE CELLSPACING="13">
                          CELLPADDING: The CELLPADING attribute is used to define the minimum space between
                          the edge of the edge of the cell and the text or data inside the cell. This attribute takes value
                          in pixels. The default value taken by the attribute is 2. For example,

                            <TABLE CELLPADDING="15">
                      Attributes of the <TD> Tag

                      The <TD> tag stands for Table Data. It is used to fill the data in the table cells. Following are the
                      attributes used to present the cell or table data in more effective manner:

                          ALIGN: The ALIGN attribute is used to set display position of the text in a cell horizontally,
                          that is, horizontal alignment of the text. It can take any one of the following four values:
                           •    “justify”-stretches the content so that each character has equal width.
                           •    “center”-to align text to the center of the cell.

                           •    “left”-to align text to the left edge of the cell.
                           •    “right”-to align text to the right edge of the cell.

                              For example,

                              <TD ALIGN="center">

                          BGCOLOR: The BGCOLOR attribute is used to give background color to an individual cell
                          wherever it is specified. For example,
                            <TD BGCOLOR="Pink">

                          WIDTH: The WIDTH attribute defines width of an individual cell when specified either in
                          pixels or in percentage of table width. For example,

                            <TD WIDTH=30> or <TD WIDTH=40%>

                          In the same way, you can use the HEIGHT attribute.

                     42     Premium Edition-VIII

| 39 40 41 42 43 44 45 46 47 48 49 |