CSS and HTML incoherences when declaring multiple classes
- by Cesco
I'm learning CSS "seriously" for the first time, but I found the way you deal with multiple CSS classes in CSS and HTML quite incoherent.
For example I learned that if I want to declare multiple CSS classes with a common style applied to them, I have to write:
.style1, .style2, .style3 {
color: red;
}
Then, if I have to declare an HTML tag…