HTML Table



HTML Table


HTML Table Tag is use to show table format on website. The following is  the syntax cum example for the HTML table tag.

<TABLE>
           <TR>
                    <TD>.........</TD>
           </TR>
</TABLE>

1. Simple table.

Example:


<!DOCTYPE HTML>
<HTML>
<HEAD>
    <TITLE>Table Example 1</TITLE>
</HEAD>
<BODY>

<p>Example of simple table:</p>
<h4>One column:</h4>
<table border="1">
<tr>
  <td>one</td>
</tr>
</table>

<h4>One row and two columns:</h4>
<table border="1">
<tr>
  <td>one</td>
  <td>two</td>
</tr>
</table>

<h4>Two rows and three columns:</h4>
<table border="1">
<tr>
  <td>one</td>
  <td>two</td>
  <td>three</td>
</tr>
<tr>
  <td>four</td>
  <td>five</td>
  <td>six</td>
</tr>
</table>

</BODY>
</HTML>

OUTPUT :




Post a Comment

0Comments
Post a Comment (0)