Programming Examples
Html program to display a table with 5 rows and 4 columns. Provide appropriate heading to the form
Write a HTML program to display a table with 5 rows and 4 columns. Provide appropriate heading to the form.
Solution
<table border="1" width="600px" align="center">
<tr>
<th>Sr. No</th>
<th>Name</th>
<th>Mobile</th>
<th>City</th>
</tr>
<tr>
<td>1</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>2</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>3</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>4</td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
Output/ Explanation: