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





Related Articles
What is HTML Tables HTML Tables
How to create an HTML Table HTML Tables
How to create HTML Table Cells HTML Tables
How to create HTML Table Rows HTML Tables
How to create HTML Table Headers HTML Tables

Single Articles
Full Example of HTML TableHTML Tables

Read Full:
HTML Tables
Category:
Web Tutorial
Sub Category:
HTML Tables
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
47


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_table3

Share on: