
Cascading Style Sheets (CSS) • 203
5.2 CLASSIFICATION OF STYLESHEETS
Stylesheets can be classified into three categories: external, internal, and inline.
This is shown in Figure 5.8.
Stylesheets
External Internal Inline
Figure 5.8 Classification of stylesheets
Let us understand the meaning of these types of stylesheets.
1. External stylesheets: An external stylesheet is external to an HTML document. In other words, it
is a separate file, and is not a part of the HTML file. The HTML file and the stylesheet file are two
separate files on the disk. We provide a reference of the stylesheet file inside our HTML document.
The stylesheet file has an ...