Search This Blog

CSS Table With Border Example

CSS Table With Border Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
table, th, td {
border: 2px solid brown;
}
</style>
</head>
<body>
<h1> Table With Border Example </h1>
<p> Here we use border property with brown color in table, th and td elements </p>
<table>
<tr>
<th> Firstname </th>
<th> Lastname </th>
</tr>
<tr>
<td> Amit </td>
<td> Ankit </td>
</tr>
<tr>
<td> Smith </td>
<td> Singh </td>
</tr>
</table>
</body>
</html>
OUTPUT
CSS Table With Border Example

No comments:

Post a Comment