Monday, 25 June 2012

ABOUT TABLES IN HTML

ABOUT TABLES IN HTML


It is used to create a table that is representing the data in rows and columns. example college details of course, faculty, student and student roll number etc.,,

Entire data will be written in <table>.........</table>

It will be described some attributes

1. ALIGN is used for assigning value left/right/center respectively

2.BACKGROUND is used for to set the background image/graphics for the table

3.BGCOLOR is used for set color of the window

4.BORDERCOLOR is used for set the color of the border

5.BORDER is used for set the width of the border

6.COLS is used for to specify the number of columns

7.WIDTH is used for to specify the width of the table

8.HEIGHT is used for to specify the height of the table


Some of the attributes are used is <tr>...</tr> tag which is used  to corresponds to a single Row of a given table. The attributes are ALIGN,BGCOLOR,BORDERCOLOR,VALIGN (which is used for to assign the value in top,widdle,bottom)

similarly we use this attributes in <th>..</th>tag which is used for heading of the table. The attributes are ALIGN,BGCOLOR,BORDERCOLOR,VALIGN,WIDTH(to set the width of the table header).

<td>..</td> tag is used for to insert the data into each block of the table.

No comments:

Post a Comment