Friday 17 June 2016

Task 36

HTML tables at w3schools.


I added a border, changed the colour and the width.

Here is the code:

<!DOCTYPE html>
<html>
<body>
<style>
table, th, td {
    border: 1px solid black;
    background-color: pink;
    color: black;
}
</style>
<table style="width:80%">
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>
</body>
</html>

No comments:

Post a Comment