how to create table in html example one

=> open ur text editer :-

=> And save it as table_demo1.html and write below code:-

<html>

<body>

<table align="center" border="1" title="details" width="200">

<tr>
<td align="center">no.</td>
<td align="center">name</td>
<td align="center">roll no</td>
<td align="center">id</td>
</tr>

<tr>
<td colspan="4"><hr>
</tr>
<tr bgcolor="#f1f1f1">
<td>1</td>
<td>abc</td>
<td>01</td>
<td>1030211101</td>
</tr>

<tr>
<td>2</td>
<td>xyz</td>
<td>02</td>
<td>1030211102</td>
</tr>

<tr bgcolor="#f1f1f1">
<td>3</td>
<td>def</td>
<td>03</td>
<td>1030211103</td>
</tr>
<tr>
<td colspan="4"><hr>
</tr>
</table>

</body>
</html>

=>then run on ur browser.

=>if u download source code then click on below link :-

Download Source Code

Comments

Post a Comment

Popular posts from this blog

How to create simple biodata form in html

How to use Height and Width property in HTML using CSS