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