<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Испытание: итоговая таблица</title>
</head>
<body>
<h1>Итоговая таблица</h1>
<table>
<th align=left>Город</th>
<th class=one>Посещений</th>
<th class=three>%</th>
<tr>
<td>СПб</td>
<td class=two>199</td>
<td class=three>65.12</td>
</tr>
<tr class=four>
<td>Москва</td>
<td class=two>69</td>
<td class=three>21.3</td>
</tr>
<tr>
<td>Киев</td>
<td class=two>5</td>
<td class=three>8</td>
</tr>
<tr class=four>
<td colspan=2>Посещений за весь период</td>
<td class=three>273</td>
</tr>
</table>
</body>
</html>
body {
width: 350px;
margin: 0;
padding: 0 10px;
font-size: 14px;
font-family: Arial, sans-serif;
}
table {
border-collapse: collapse;
}
th {
width: 33%;
padding: 10px;
border-top: 1px solid black;
border-bottom: 1px solid black;
color: white;
background-color: darkcyan;
}
td {
padding: 10px;
border-bottom: 1px solid lightgray;
}
.one {
background-color: lightblue;
}
.two {
text-align: center;
}
.three {
text-align: right;
}
.four {
background-color: lightyellow;
}
Не забывайте писать значения атрибутов в кавычках. Также уделяйте больше внимания названиям классов.