Apply CSS (transfer) in different ways

xiaoxiao2021-03-06  42

There are several ways to apply the elements in an HTML document CSS.

Outer chain

Write all CSS rules in one or several separate files, this approach has many advantages. The HTML document becomes very small, and the CSS file is present in the browser's cache, just download it once, and you only need to modify a file to change the style of the entire website. An external chain CSS file, see below: h1 {font-weight: bold;}

Note: There is no