How to Create a Table Using HTML
Most of the websites depends on table views. Tables are used to display data in a standard view to the viewer.
The following code let us to insert table into a website...
<html>
<title> Tables </title>
<body>
<table>
<table border="1">
<caption> Table </caption>
<tr>
<td> Name </td>
<td> Subject </td>
</tr>
<tr>
<td> Jack </td> <td> Mathematics </td> </tr>
<td> Smith </td> <td> History </td> </tr>
<td> Jane </td> <td> Geography </td> </tr>
</table>
</body>
</html>
In the following code the <table> tag is used to create a table.
<caption></caption> - Heading of the table
<tr> - Table Raw
<td> - Table Data (data which want to be added in to the table's cell)
Most of the websites depends on table views. Tables are used to display data in a standard view to the viewer.
The following code let us to insert table into a website...
<html>
<title> Tables </title>
<body>
<table>
<table border="1">
<caption> Table </caption>
<tr>
<td> Name </td>
<td> Subject </td>
</tr>
<tr>
<td> Jack </td> <td> Mathematics </td> </tr>
<td> Smith </td> <td> History </td> </tr>
<td> Jane </td> <td> Geography </td> </tr>
</table>
</body>
</html>
In the following code the <table> tag is used to create a table.
<caption></caption> - Heading of the table
<tr> - Table Raw
<td> - Table Data (data which want to be added in to the table's cell)
No comments:
Post a Comment