1.4 Importing CSS
The import rule allows additional stylesheets to be imported into a stylesheet. This takes full advantage of the cascade and is useful for example in large websites where additional stylesheets are required. Rather than having to go through all the html pages and add extra links to the new stylesheet(s) in the head sections, they can simply be imported into the original stylesheet instead. In the original stylesheet we would simply add something like this:
@import "style2.css";
This can save a lot of work!
Note that here we have been using html selectors (tags), and defining properties (attributes) for html elements. It is also possible to define your own selectors using class and id selectors - see the section on CSS Grouping.