Horje
How to create an HTML Table

A table in HTML consists of table cells inside rows and columns.


Full Example of HTML Table

A simple HTML table:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>A basic HTML table</h2>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=1>
<TBODY>
<TR>
<TD>&nbsp;Name</TD>
<TD>&nbsp;Address</TD></TR>
<TR>
<TD>&nbsp;Itupto</TD>
<TD>&nbsp;Sri Lanka</TD></TR></TBODY></TABLE>

<p>To understand the example better, we have added borders to the table.</p>

</body>
</html>

Output should be:

Full Example of HTML Table





Category:
Web Tutorial
Sub Category:
HTML Tables
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference