CBSE BOARD X, asked by ankitmurmu, 10 months ago

show the html code for cell spacing, cell padding and nested list.

Answers

Answered by prabhatofficial2017
0

<!DOCTYPE html>

<html>

<head>

<style>

table, th, td {

 border: 1px solid black;

}

</style>

</head>

<body>

<p>Table with cellspacing:</p>

<table cellspacing="10">

 <tr>

   <th>Month</th>

   <th>Savings</th>

 </tr>

 <tr>

   <td>January</td>

   <td>$100</td>

 </tr>

</table>

<p>Table with cellpadding:</p>

<table cellpadding="10">

 <tr>

   <th>Month</th>

   <th>Savings</th>

 </tr>

 <tr>

   <td>January</td>

   <td>$100</td>

 </tr>

</table>

</body>

</html>

Similar questions