CSS @import Rule

❮ Previous Reference Next ❯


@import url("demo.css") print;


The @import rule can be used to define style rules for multiple media types in a single embedded style sheet.

Standard Syntax

@import url [media type,...];

Browser Support

The numbers in the table specify the first browser version that fully supports the property.


Property Values

The following table describes the values of this property.

Value Description
url Is a string, a url, or a url() function representing the location of the resource to import. The URL may be absolute or relative.
media type Is a comma-separated list of media queries, which specify the media-dependent conditions for applying the CSS rules defined in the linked URL.
❮ Previous Reference Next ❯