", etc. ."/> ", etc. .">

Home >Web Front-end >Front-end Q&A >What are the css syntax errors?

What are the css syntax errors?

藏色散人
藏色散人Original
2021-01-05 10:38:293595browse

css syntax errors include: 1. Wrong attribute name or selector name, and the attribute value does not comply with the specification; 2. Wrong use of Chinese or full-width symbols; 3. Incomplete html tags, missing "< ;" or ">" etc.

What are the css syntax errors?

The operating environment of this tutorial: windows7 system, Chrome76.0&&CSS3 version, Dell G3 computer.

Related recommendations: "css Video Tutorial"

What are the common grammatical errors in css?

Take the developer tools of Google Chrome as an example. Generally, grammatical errors will be displayed as the style is crossed out, there will be an icon prompt on the left side of the style, and an English prompt will be displayed when the mouse is moved into it. As shown in the figure below:

What are the css syntax errors?

General syntax errors include:

1. Wrong attribute name, selector name, attribute value does not comply with the specification;

2. The following symbols use Chinese or full-width symbols:

,;{}:

3. The html tag is not completely written, missing "", etc.

The above is the detailed content of What are the css syntax errors?. 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