body {background-color:blue;}
Description:
The body{} above is a type selector. The so-called type selector refers to a selector whose name is based on an existing tag type in a web page, body is a tag type in a web page, so is div, and so is span. So the following selectors are all type selectors, and they will control all body or div or span in the page:
body{} div{} span{}
The above is what is the grammatical structure of CSS? For more details, please pay attention to other related articles on 1024programmer.com!