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
Updated on 30-Jan-2020 08:23:52

Advertisements