There are 2 different ways how to connect an external CSS file with an HTML file. The external file can be within a Style range – this example looks like this:
The syntax of @import url(); binds in the parenthesis indicated CSS file. It is subject to general rules for absolute and relative file paths. This information can also be within a CSS file to make another CSS file involved. Netscape 4 sees this syntax, unlike almost all other CSS-capable browsers. Therefore, it can be also used as a browser switch to Netscape 4 by using CSS commands to use.
The HTML syntax to embed external CSS files, use the Link tag. An example:
<link rel=”stylesheet” type=”text/css” href=”style.css”>
The attribute href specifies the path to the CSS file, but again the general rules for valid paths. In addition, the attributes rel and type attributes duty. By rel is the browser reported that it is a stylesheet that is to be included (the item link can also be used for other purposes), by the attribute type is the mime type specified.