You have earned 0 point(s) out of 0 point(s) thus far.

Raggruppamento di selettori

Quando diversi selettori condividono le stesse dichiarazioni è possibile raggruppare le regole in un'unica regola separando i selettori da , (virgola).

Si considerino ad esempio le seguenti regole

h1 { 
	font-family: Helvetica;
}

h2 { 
	font-family: Helvetica;
}

h3 {
	font-family: Helvetica;
}
Queste possono essere raggruppate in un'unica regola
h1, h2, h3 { 
	font-family: Helvetica 
}
You have completed 0% of the lesson
0%