Write a program in HTML to create a table with a normal, thick, very thick border.

Write a program in HTML to create a table with a normal, thick, very thick border.

 

<!DOCTYPE html>

<html>

<head>

<title>Example of Border</title>

</head>

<body>

<h4>Table with a normal border</h4>

<table border="1">

<tr>

<td>first</td>

<td>row</td>

</tr>

<tr>

<td>second</td>

<td>row</td>

</tr>

<tr>

<td>third</td>

<td>row</td>

</tr>

</table>

<h4>Table with a thick border</h4>

<table border="8">

<tr>

<td>first</td>

<td>row</td>

</tr>

<tr>

<td>second</td>

<td>row</td>

</tr>

<tr>

<td>third</td>

<td>row</td>

</tr>

</table>

<h4>Table with a very thick border</h4>

<table border="15">

<tr>

<td>first</td>

<td>row</td>

</tr>

<tr>

<td>second</td>

<td>row</td>

</tr>

<tr>

<td>third</td>

<td>row</td>

</tr>

</table>

</body>

</html>

 



Comments