Tuesday, December 18, 2018

CREATE A TABLE WITH HTML.

TAGS WHICH WE USE IN TABLE:-


  • <TABLE>CREATE A TABLE TAG</TABLE>
  • <THEAD>TABLE HEAD</THEAD>
  • <TR>TABLE ROW</TR>
  • <TD>TABLE DATA OR COLUMN</TD>

EXAMPLE:-

<html>
<head>
<title> TABLE FOR GAME.</table>
</head>
<body bgcolor="blue" text="black">
<p>PLAY THE GAMES<br>BY PLAYER</P>
<hr width="50%" align="left" color="red" size="10px">
<h1>THE GAME IS LIFE...</h1><br>
<p><b>WELCOME</b>TO<i>INDIA</i></p>
<u> HELLO!! PLAYERS</u><br>
<p><b>INDIA<sub>PLAYERS</sub>BEST<sup>PLAYERS</sup></b></p>

<table border="2">
<thead>
<tr>
<td>NAME</td>
<td>SEX</td>
<td>AGE</td>
</tr>
</thead>
<tbody>
<tr>
<td><i>Ram</i></td>
<td><i>Male</i></td>
<td><i>18</i></td>
</tr>
</tbody>
</table>
<hr width="100%" align="left" color="red" size="5px">
</body>
</html>

................................................................................................................................................
OUTPUT:-



No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...