Usage of @import Rule for CSS



@import is used to import an external stylesheet in a manner similar to the <link> element.

Here is the syntax of the @import rule:

<head>
   <@import "URL";
</head>

Following is the example showing you how to import a style sheet file into HTML document:

<head>
   @import "new.css";
</head>
Lakshmi Srinivas
Lakshmi Srinivas

Programmer / Analyst / Technician


Advertisements