Sunday, October 15, 2017

CLASS 5 - HTML PROGRAM ON TABLE USING TABLE TAG

What is table and how we create it in HTML?

<table>, <tr>, <th>, <td> elements are used in table creation in HTML.

File Name:  "Table.html"

<html>
<head>
<title>HTML TABLE PROGRAM</title>
</head>
<body>
<br/> <br/> <br/>
<table border="1" align="center" width="200">
<tr>
<th bgcolor="yellow">S.No</th>
<th bgcolor="yellow">Name</th>
</tr>
<tr>
<th align="center" bgcolor="lime">1</th>
<th align="center" bgcolor="lime">Anil</th>
</tr>
<tr>
<th align="center" bgcolor="skyblue">2</th>
<th align="center" bgcolor="skyblue">Sunil</th>
</tr>
</table>
</body>

</html>

OUTPUT:




Watch the below video for more details on the above program:




*************************************************************************

No comments:

Post a Comment