Make TABLE in HTML Programming
To make a table in HTML programming use <TABLE> tag and ended </TABLE>.
There are have a 2 part of table its row and cell. To make a row in table use <TR></TR> inside <TABLE> and </TABLE> tag and to make a cell use <TD></TD> insede the <TR> and </TR> tag.
The code like this:
<TABLE>
<TR>
<TD></TD>
</TR>
</TABLE>
That code used to make a table with one row and one column.
More Example
<HTML>
<HEAD><TITLE>My table</TITLE></HEAD>
<BODY>
<TABLE>
<TR>
<TD>No</TD><TD>Name</TD>
</TR>
<TR>
<TD>1</TD><TD>Rudi</TD>
</TR>
<TR>
<TD>2</TD><TD>Dodi</TD>
</TR>
</TABLE>
</BODY>
</HTML>
The preview will be like this
There are have a 2 part of table its row and cell. To make a row in table use <TR></TR> inside <TABLE> and </TABLE> tag and to make a cell use <TD></TD> insede the <TR> and </TR> tag.
The code like this:
<TABLE>
<TR>
<TD></TD>
</TR>
</TABLE>
That code used to make a table with one row and one column.
More Example
<HTML>
<HEAD><TITLE>My table</TITLE></HEAD>
<BODY>
<TABLE>
<TR>
<TD>No</TD><TD>Name</TD>
</TR>
<TR>
<TD>1</TD><TD>Rudi</TD>
</TR>
<TR>
<TD>2</TD><TD>Dodi</TD>
</TR>
</TABLE>
</BODY>
</HTML>
The preview will be like this
1 Comments:
thnks
Post a Comment
<< Home