<style>
body {
background-color: aqua;
}
</style>
<body style="background-color: aqua">
<link rel="stylesheet" type="text/css" href="style.css">
div 태그 중, class로 header를 가진 요소만 적용
div.header {
background-color: rebeccapurple;
}
.col.side {
background-color: rebeccapurple;
}
.col.middle {
background-color: aqua;
}
...
<div class="col side">side</div>
<div class="col middle">middle</div>
a:link { color: red; text-decoration: none; } >> a태그 중 href가 걸려있는 것
a:visited { color: blue; } 클릭하고 나면 파란색
a:hover { color: orange; text-decoration: none; }
a:active { background-color: green; text-decoration: underline; }
li a:hover:not(.active) {
background-color: aqua;
}
@media screen and (max-width: 600px) {
.col.middle,
.col.side {
display: none;
}
}