What is the syntax of the CSS pseudo-class
Most people do not understand the knowledge points of this article "what is the syntax of CSS pseudo-class", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the syntax of CSS pseudo-class" article.
Grammar
The syntax of the pseudo class:
Selector: pseudo-class {property: value}
The CSS class can also be used with pseudo-classes.
R.class, CTO of sele: pseudo-class {property: value} anchor pseudo-class
In favor of CSS readers, the shape of the link gap is larger than the door path shows that these forms sweep: activity state, received shape, unaccessed shape, and mouse hover shape.
A:link {color: # FF0000} / * Link not met * / a:visited {color: # 00FF00} / * Link met * / a:hover {color: # FF00FF} / * move the mouse over the link * / a:active {color: # 0000FF} / * selected link * /
Implication: in the CSS definition, a:hover must be placed after a:link and a:visited before it is invalid.
Implication: in the definition of CSS, a:active must be placed after a:hover to be useful.
Reminder: pseudo-classes are commonly known as being slow to write big letters.
Pseudo class and CSS class
Pseudo classes or in conjunction with CSS classes:
A.red: visited {color: # FF0000} CSS Syntax
Assuming that the link in the following example has been met, it will flash red.
The above is the content of this article on "what is the grammar of CSS pseudo-classes". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.