Home > Article > Web Front-end > Is css case insensitive?
In HTML files, CSS is not case-sensitive. When using CSS in XHTML, element names defined in CSS are case-sensitive. Cascading style sheets are a computer language used to express document styles such as HTML or XML.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
Cascading Style Sheets (English full name: Cascading Style Sheets) is a computer used to express document styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language). language.
In HTML files, CSS is not case-sensitive. When using CSS in XHTML, element names defined in CSS are case-sensitive.
Example:
URI utility
However, in XHTML, CSS is still case-insensitive for basic HTML tags. BODY in this example can still be applied to the
tag.Effect comparison:
In XHTML:
In HTML:
Extended information:
XHTML
Extensible Hypertext Markup Language (English: eXtensible HyperText Markup Language, Text Markup Language (HTML) is similar, but syntactically stricter.
In terms of inheritance relationship, HTML is an application based on Standard General Markup Language (SGML) and is a very flexible markup language, while XHTML is based on Extensible Markup Language (XML). XML Is a subset of SGML. XHTML 1.0 became a W3C recommendation on January 26, 2000.
Recommended learning: css video tutorial
The above is the detailed content of Is css case insensitive?. For more information, please follow other related articles on the PHP Chinese website!