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:

   <@import "URL";

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

   @import "new.css";
Updated on 30-Jan-2020 08:23:52