Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
CSS grouping can be used to condense code that has multiple selectors with the same declarations. This makes code easy to read and maintain. Also it is significantly reduced development time as there is less code to write.The Page loading times is reduced if we’ll use grouping in CSS.
Code Without Grouping:
h1{
font-size: 5px;
color: red;
}
h2{
font-size: 5px;
color: red;
}
h3{
font-size: 5px;
color: red;
}
Code With Grouping:
h1, h2, h3 {
font-size: 5px;
color: red;
}