1.
External (extenal) style sheets have the following advantages over inline and internal:
StyleCodeReusable. An external CSS file can be shared by many webpages.
Easy to modify. To modify a style, you only need to modify the CSS file without modifying each webpage.
Increase the speed of web page display. If a style is written on a webpage, the display speed of the webpage is reduced. If a CSS file is referenced on the webpage, most of the CSS files are already in the cache (other webpages have already referenced it ), web page display speed is faster.
Cascading)
The first letter of CSS is cascading, which indicates a series. Styles of different sources can be combined to form a style.
The order of cascading is:
Browser default (lowest priority)
External style sheet (extenal style sheet)
Internal style sheet (internal style sheet)
Inline style (highest priority)
Styles take precedence over inline, internal, external, and browser default ). Suppose there is a font-size: 30pt In the inline style and a font-size: 12pt in the internal (internal) style, then the inline style will overwrite the internal (internal) style.
2.
Font attributes)
This attribute is a quick and comprehensive way of writing various font attributes. This attribute can be integrated with font-style, font-variant, font-weight, and font-size). Example:
. S1 {Font: italic normal bold 11pt Arial}