1. Selektor CSS
Selektor digunakan untuk memilih elemen HTML yang ingin diberi gaya. Contoh selektor dasar:
/* Selektor tag */
p {
color: blue;
}
/* Selektor kelas */
.box {
background-color: yellow;
}
/* Selektor ID */
#header {
font-size: 24px;
}