Usage of @import Rule for CSS

JavascriptWeb DevelopmentFront End Scripts

@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>
raja
Published on 13-Apr-2018 07:55:00
Advertisements