How To Make Table in HTML
When we are making webpage we have knowledge about HTML tags,that which tag is used for that work
Firstly after the body tag start Table tag
<table> </table> This tag for table
<tr></tr>. this is used inside in the table for table data
<th></th> This tag for column heading of table
<td></td> this tag is used for table data
The main Content of table tag is
Example:- We make a table of Three Columns And Two Rows
OUTPUT
When we are making webpage we have knowledge about HTML tags,that which tag is used for that work
Firstly after the body tag start Table tag
<table> </table> This tag for table
<tr></tr>. this is used inside in the table for table data
<th></th> This tag for column heading of table
<td></td> this tag is used for table data
The main Content of table tag is
Example:- We make a table of Three Columns And Two Rows
<table border="1">
<tr>
<th>Heading1
</th>
<th>Heading2
</th>
<th>Heading3
</th>
</tr>
<tr>
<td>Data1 Columns1-row1
</td>
<td>Data2 Columns2-row1
</td>
<td>Data3 columns3-row1
</td>
</tr><tr>
<td>Data4 Columns1-row2
</td>
<td>Data5 Columns2-row2
</td>
<td>Data6 columns3-row2
</td>
</tr>
</table>
<tr>
<th>Heading1
</th>
<th>Heading2
</th>
<th>Heading3
</th>
</tr>
<tr>
<td>Data1 Columns1-row1
</td>
<td>Data2 Columns2-row1
</td>
<td>Data3 columns3-row1
</td>
</tr><tr>
<td>Data4 Columns1-row2
</td>
<td>Data5 Columns2-row2
</td>
<td>Data6 columns3-row2
</td>
</tr>
</table>
OUTPUT
Heading1 | Heading2 | Heading3 |
---|---|---|
Data1 columns1-row1 | Data2 columns2-row1 | Data3 columns3-row1 |
Data4 Columns1-row2 | Data5 Columns2-row2 | Data6 columns3-row2 |
Comments
Post a Comment