html head style type text css table td th border 1px solid green th ba

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html>
<head>
<style type="text/css">
table, td, th
{
border:1px solid green;
}
th
{
background-color:green;
color:white;
}
</style>
</head>
<body>
<table>
<tr>
<th>Имя</th>
<th>Фамилия</th>
<th>Сбережения</th>
</tr>
<tr>
<td>Петр</td>
<td>Иванов</td>
<td>100 руб.</td>
</tr>
<tr>
<td>Василий</td>
<td>Сидоров</td>
<td>150 руб.</td>
</tr>
<tr>
<td>Иван</td>
<td>Первухин</td>
<td>300 руб.</td>
</tr>
<tr>
<td>Илья</td>
<td>Петров</td>
<td>250 руб.</td>
</tr>
</table>
</body>
</html>