CSS border प्रॉपर्टी उपयोग करें
HTML5 में <table> का border एट्रिब्यूट डिप्रिकेटेड है। टेबल, <th> और <td> के लिए CSS border प्रॉपर्टी उपयोग करें।
उदाहरण
<!DOCTYPE html> <html>
<head>
<style>
table, th, td { border: 1px solid black; }
</style>
</head>
<body>
<h1>Employee Details</h1>
<table>
<tr> <th>Name</th> <td>Amit</td> <td>Sachin</td> </tr>
<tr> <th>Age</th> <td>27</td> <td>34</td> </tr>
</table>
</body>
</html>