CSS:
.cs-tab-li {
display: inline-block;
background-color: #f0f0f0;
color: #333;
padding: 5px 10px;
}
.cs-tab-anchor-2:not(:target) + :not(:target) ~ .cs-tab .cs-tab-li:first-child,
.cs-tab-anchor-2:target ~ .cs-tab .cs-tab-li:nth-of-type(2),
.cs-tab-anchor-3:target ~ .cs-tab .cs-tab-li:nth-of-type(3) {
background-color: deepskyblue;
color: #fff;
}
.cs-panel-li {
display: none;
padding: 20px;
border: 1px solid #ccc;
}
.cs-tab-anchor-2:not(:target) + :not(:target) ~ .cs-panel .cs-panel-li:first-child,
.cs-tab-anchor-2:target ~ .cs-panel .cs-panel-li:nth-of-type(2),
.cs-tab-anchor-3:target ~ .cs-panel .cs-panel-li:nth-of-type(3) {
display: block;
}