<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Испытание: итоговая таблица</title>
</head>
<body>
<h1>Итоговая таблица</h1>
<table>
<tr class="row-1">
<th class="cell-1">Город</th>
<th class="cell-2 sp">Посещений</th>
<th class="cell-3">%</th>
</tr>
<tr class="row-2">
<td class="cell-1">СПб</td>
<td class="cell-2">199</td>
<td class="cell-3">65.12</td>
</tr>
<tr class="row-3">
<td class="cell-1">Москва</td>
<td class="cell-2">69</td>
<td class="cell-3">21.3</td>
</tr>
<tr class="row-4">
<td class="cell-1">Киев</td>
<td class="cell-2">5</td>
<td class="cell-3">8</td>
</tr>
<tr class="row-5">
<td class="cell-1" colspan="2">Посещений за весь период</td>
<td class="cell-3">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{
border-top: 1px solid black;
border-bottom: 1px solid black;
padding: 10px;
}
.sp{
background-color: lightblue;
}
td{
border-bottom: 1px solid lightgray;
padding: 10px;
}
.row-1{
background-color: darkcyan;
color: white;
}
.row-3, .row-5{
background-color: lightyellow;
}
.cell-1{
text-align: left;
width: 33%;
}
.cell-2{
text-align: center;
width: 33%;
}
.cell-3{
text-align: right;
width:33%;
}