Write an HTML code in computer note book for displaying
Answers
Hi,
below is the code of above output all you have to do is copy this code and paste it in a file and save it as .html and open in a web browser.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Table Example</title>
<style>
table,td,th,tr {
border: 1px solid black;
border-collapse: collapse;
}
th,td {
padding: 15px;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>tag</th>
<th>attribute</th>
<th>valid option</th>
<th>function</th>
</tr>
</thead>
<tbody>
<tr>
<th><TABLE></th>
<td>WIDTH</td>
<td>value in pixels percentage</td>
<td>Specifies fixed width of table<br/>Specifies width of table as a percentage of browser window width</td>
</tr>
<tr>
<th></th>
<td>Height</td>
<td>value in pixels percentage</td>
<td>Specifies fixed height of table<br/>Specifies height of table as a percentage of browser window height</td>
</tr>
<tr>
<th></th>
<td>CELLPADDING</td>
<td>value in pixels</td>
<td>Specifies thickness of empty zone surrounding contents of each cell</td>
</tr>
<tr>
<th><TD></th>
<td>WIDHT</td>
<td>value in pixels percentage</td>
<td>Specifies fixed width of cell, and applies to entire column<br>Specifies width of cell as a percentage of table width</td>
</tr>
<tr>
<th><TD></th>
<td>HEIGHT</td>
<td>value in pixels percentage</td>
<td>Specifies fixed height of cell, and applies to entire column<br>Specifies height of cell as a percentage of table height</td>
</tr>
</tbody>
</table>
</body>
</html>
hope it helps you.