HTML Tables

HTML Tables provides you the TABLE element to create a table. The table element helps you to display the information in more than one dimensions.

 

<TABLE>

HTML Tables row and columns come inside it.

</TABLE>

Following are the elements used in the TABLE element:

CAPTION,

COLGROUP,

COL,

TBODY,

THEAD,

TFOOT,

TR,

TD,

TH

The CAPTION Element

Caption element is like the heading of the table. only one caption you can use in the table.

 

<TABLE>

<CAPTION>

Caption tag in HTML Tables.

</CAPTION>

</TABLE>

Example of Table :-

<HTML>
<HEAD><TITLE>Table Example</TITLE>
</HEAD>
<BODY>
<TABLE border="1px" >
<CAPTION>Student Table</CAPTION>
<TR><TH>Name</TH><TH>Roll No.</TH></TR>
<TR><TD>Jai</TD><TD>201</TD></TR>
<TR><TD>John</TD><TD>202</TD></TR>
</TABLE>
</BODY>
</HTML>

 

Html table




Follow Us

Contact Us

tutorialworldin@yahoo.com

Back to Top