Page 182 - Webapplication11_C11_Flipbook
P. 182

or

                <TABLE BORDER = "2" BORDERCOLOR="#DDDDFF">
              Ð ÐFRAMES: The Frames attribute allows you to show borders only at specified sides. For example, <table frame
                 "value">
                if the value of the Frames attribute is:

                     “box” or “border”—the border is displayed on all four sides.
                     “above”—the border is displayed on the top side only.
                     “below”—the border is displayed at the bottom side only.
                     “hsides”—the border is displayed at both top and bottom sides.

                     “lhs”—the border is displayed on the left-hand side only.
                     “rhs”—the border is displayed on the right-hand side only.
                     “vsides”—the border is displayed on both left and right sides.
                     “void”—no border is displayed.

              Ð ÐBGCOLOR: The Bgcolor attribute is used to change the background color of the table. The value can be any permitted
                 color name or its HEX equivalent value. For example,

                     <TABLE BGCOLOR="Green"> or <TABLE BGCOLOR="#FFOOOO">
              Ð Ð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 a 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 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 a more effective manner:

              Ð ÐALIGN: The Align attribute is used to set the 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.

                180     Touchpad Web Applications-XI
   177   178   179   180   181   182   183   184   185   186   187