<table> tag in HTML

The <table> tag is used to defines a HTML table.

Important Description

  • An HTML table consists one or more <tr> (table row), <th> (table header), and <td> (table cell) elements inside a <table> element.
  • Open and close tag required of <table>.

Example of <table> tag

Result Look Like

Month Salary Monthly_Savings
December $1000 $200

<table> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<table> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "align", "bgcolor", "border", "cellpadding", "cellspacing", "frame", "rules", "summary", and "width" attributes are not supported in HTML5:

Attribute Value Description
align right
left
center
Align attribute specifies the alignment of a table
border 1
0
Border attribute specifies whether or not the table is being used for layout purposes
cellspacing pixels Cellspacing attribute specifies the space between the cell wall and the cell content
frame void
above
below
hsides
lhs
rhs
vsides
box
Frame attribute specifies which parts of the outside borders that should be visible
rules none
groups
rows
cols
all
Rules attribute specifies which parts of the inside borders that should be visible
summary text Summary attribute specifies a summary of the content of a table
width pixels
%
Width attribute specifies the width of a table

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)