0% found this document useful (0 votes)
39 views1 page

Summary of Table Tag - HTML: Tags Attributes

The <table> tag in HTML is used to create tables and contains attributes like align, bgcolor, border, cellpadding, cellspacing, height and width. The <table> tag can contain <caption>, <tr>, <th> and <td> tags where <caption> provides a heading, <tr> creates rows, <th> is for column/row headings and <td> contains data. Each tag has its own attributes to control alignment, color, merging of cells etc.

Uploaded by

rengarajan82
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Summary of Table Tag - HTML: Tags Attributes

The <table> tag in HTML is used to create tables and contains attributes like align, bgcolor, border, cellpadding, cellspacing, height and width. The <table> tag can contain <caption>, <tr>, <th> and <td> tags where <caption> provides a heading, <tr> creates rows, <th> is for column/row headings and <td> contains data. Each tag has its own attributes to control alignment, color, merging of cells etc.

Uploaded by

rengarajan82
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Summary of Table Tag - HTML

Tags Attributes
Align Left/Right/center

Bgcolor Gives colour to the entire table

Border Applies the border of the given thickness

Cellpadding Determines the amount of space between the


Table content and the border of the cell
Cellspacing Determines the space between individual cells

Height Specifies the height of the table

Width Specifies the width of the table

Parameters
Purpose Their attributes
of Table

<Caption> Gives heading to the


table
Align -Top/bottom
Align- center/right/left
<tr> Creates a row
Bgcolor-gives color to the row
Valign – aligns the contents bottom/middle/top
Align-center/left/right
Used for giving
column/row heading Valign-bottom/middle/top
<th> (appears bold and Bgcolor- gives color to the header cell
center aligned to the
cell by default) Colspan- used to merge two or more columns
Rowspan- used to merge two or more rows
Align-center/left/right
Used for giving table
data Valign-bottom/middle/top
<td> (appears regular and Bgcolor- gives color to the header cell
left aligned to the cell
by default) Colspan- used to merge two or more columns
Rowspan- used to merge two or more rows

You might also like