CSS - Link vs. @import

link is an HTML element.

@import is a CSS directive.


The HTML link element

Used to reference a document of a specific type.

<link rel="stylesheet" href="style.css" type="text/css" />

The CSS @import directive

Used to import another CSS file.

 @import "default.css";

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath