Home  >  Article  >  Web Front-end  >  Is css case insensitive?

Is css case insensitive?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-07-15 11:31:082184browse

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.

Is css case insensitive?

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:

Is css case insensitive?

In HTML:

Is css case insensitive?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn