From this question, as I understand, css selectors are case-insensitive but HTML attributes (class names) are case sensitive thus IMHO, .example
should be overridden by .Example
css selector but that does not happen. <div class="example">
color is still red and not blue as I thought it would since css selectors are case-insensitive.
.example {
color: red;
}
.Example {
color: blue;
}
<div class="example">
example
</div>
` html element. By saying `HTML class names are case-sensitive` it is implied that this is the case when you try to select them in CSS. Not that you are not allowed to use `ExAmPle` as a class name ( it's not recommended though )
– Mihai T Dec 21 '18 at 14:23