Is Css Case Sensitive?

Category: Web Design HTMLIs Css Case Sensitive?
Editor">Editor Staff asked 2 years ago

Is Css Case Sensitive?

1 Answers
Editor">Editor Staff answered 2 years ago

Cascading Style Sheets  is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be. The trick is that if you write a document using an XML declaration and an HTML doctype, then the CSS class names will be case sensitive for some browsers. It is a good idea to avoid naming classes where the only difference is the case, for 
If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.