The popular point of CSS is to add style to the tag. What kind of thing is a style? You can understand the clothes that people wear, make-up and so on, so that their labels look a little better
So how does this CSS add to the corresponding label?
There are 3 ways to do this: external style, inner page style, inline style.
So how does this CSS add to the corresponding label? There are 3 ways to do this: external style, inner page style, inline style. External style: Links a Web page to an external style sheet. Like this: <link rel= "stylesheet" type= "Text/css" href= "xiaochuan.css" > Inner page style: Create an embedded style sheet on a Web page like this.:<style> Body{}</style> in-line style: applies inline styles to individual page elements. Like this: <p style= ' color: #999999 ' >xiaochuan</p> So, for example, I have three styles for a particular label. What does his priority look like? Inline style > inner page style > external style How do you understand it? For example: Inline style set text size to 14px inner page style set text size to 15px external style set text size to 16px so this way the label's setting text size is 14PXCSS syntax Tag Selector method This is for All tags corresponding to the page will be effective P{color: #999999}<p >xiaochuan1</p>