Detailed Syllabus:- (First Part from 7th chapter)
Table: -
(Border, Border Color, Height, Width, Align, Cell Spacing, Cell Pading, Bgcolor, Frame)
Table Rows: -
(Align, Valign, Rowspan, Colspan)
Table Heading: -
and are used to create a row of the table.5. The table data tags
are used to specify the contents of a cell.6.
are used to create cells in the same way as the table data tags, except that the text in the cells will be bold and centered7. The caption tags
tags allows for the creation of a caption for a table.The
(Align, Rowspan, Colspan) Table Data: - | (Align, Valign, Rowspan, Colspan, Bgcolor, Background) Caption: - |
---|
4.
The
Syntax:
Border=”value”
Border color=”color”
Width =”value”
Height=”Value”
Bgcolor= “color”
Cell spacing= “value”
Frame= “frame type”>
……….
Attributes of TABLE Tag | |
Attribute | Description |
Border Border color Height Width Cell spacing Cell padding Bgcolor Align Frame Background | Creates a thin line around all cells. The width of the border lines can be specified as a value in pixels. If specified without any value, a thin line is created a round all cells. The value 0 is equivalent to having no border. The larger the value specified the thicker will be the border. Assigns a color to the border in hexadecimal triplets or codes. By default a table will be as long as the height of the entries in its cells. An exact height can be specified here either in pixels or as a percentage of the browser’s window. By default a table will be as wide as the longest entries in its cells. An exact width can be specified here either in pixels or as a percentage of the browser’s window. Cell spacing means the space between the cell border and table frame. This space can be adjusted in pixels. Cell padding is the space between the cell border and table frame. This space can be adjusted in pixels. Background color can assigned a color using color codes. Aligns the table with respect to other document elements Frame specifies with sides of the table’s outer border are visible in the browser window. Normally all the four sides of the table will have a border. Using the frame attribute we can control display of these borders. An image can be specified as a background of a table. The filename of the desired image should be specified here. The specified image is tiled to fill the background of the table. |
FAQ’s
Q.No.1. Read the HTML code given below and answer the following question
(a) Differentiate between cell spacing and cell padding.
(b) Briefly describe three attributes of
Q.No.2. If you specify RED to the bgcolor attribute of
Q.No.2. The cell contents of the
tag (Table Row tag)The
Tag is used to specify row within a table and is placed inside the tag is always bold. Is this statement true? Give reason. What is the need for “colspon” and “Rowspan”? |
---|
Syntax:
Bgcolor= “Color”
Valign=”Align-type”>
Attributes of Table Row –TR Tag | |
Attributes | Description |
Align Valign Bgcolor | Position the text horizontally in all cells in a row. It may take on the values Left, Center, Right. Left is the default horizontal alignment. Positions the vertically in all cells in row. It may take on the values Top, Middle, Bottom and Baseline. Middle is the default vertical alignment. Specifies a background colour for all the cells in a row using colour codes |
Syntax:
Align = ”left/right/center”
Bgcolor = ”color”
Width = ”value”
Background = ”filename”
Rowspan = ”value”
Colspan = ” value”
Valign = ”align-type”>
Data in the cell
Attributes of Table Data –TD tag | |
Attributes | Description |
Align Valign Width Bgcolor background | Positions the text horizontally in all cells in a row. It may take on the values Left, Center, left is the default horizonal alignment. .Positions the values Top, Middle, Bottom and Baseline. Middle is the default vertical alignment. Specifies the width of a cell in pixles on as a percentage relative to the table width. Specifies a background color for a single cell using color codes. An image can be set as a background of an individual cell. The filename of image file is specified here. |
Rows pan | Indicates the number of rows a cell should occupy. |
Cols pan | Indicates the number of columns a cell should occupy. |
The
Syntax:
Bgcolor =”color”
Background =”rename”
Row span =”value”
Cols pan =”value”
Valign = align-type>
Heading of column or row.
Attributes of Table Data –TH tag | |
Attributes | Description |
COLSPAN ROWSPAN NOWRAP | Indicates number of columns the cell spans Indicates number of rows the cell spans Keeps off browser from wrapping automatically |
CPTIONS
Syntax:
Caption of the table
0 comments:
Post a Comment