Set the padding in <th> elements to "15px". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the padding in <th> elements to "15px".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
table, td, th {
    border: 1px solid black;
}
th {<!--   w  w  w.j a v a  2s .  com-->
    padding: 15px;
}
</style>
</head>
<body>

<table>
  <tr>
    <th>Firstname</th>
    <th>Lastname</th>
  </tr>
  <tr>
    <td>A</td>
    <td>B</td>
  </tr>
  <tr>
    <td>C</td>
    <td>B</td>
  </tr>
</table>

</body>
</html>

Related Tutorials