HTML tables

HTML Tables:


• The HTML Tables allow web author to arrange data in rows & column of cells.
• To create table <table> tag is used in which <tr> tag is used to create table row
& <td > tag is used to create table data cells.
• Here border is an attributes of<table>tag.
Example:

<!DOCTYPE html>
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table border=”1”>
<tr>
<td>Row 1, Column1</td>
<td>Row 1, Column2</td>
</tr>
<tr>
<td>Row 2, Column1</td>
<td>Row 2 Column2</td>
</tr>
</table>
</body>
</html>
OUTPUT:

Comments

Popular posts from this blog

Set Font Colour

HTML FONTS

HTML Table Heading