External CSS Stylesheet
suggest change<link rel="stylesheet" href="path/to.css" type="text/css">
The standard practice is to place CSS <link> tags inside the <head> tag at the top of your HTML. This way the CSS will be loaded first and will apply to your page as it is loading, rather than showing unstyled HTML until the CSS is loaded. The type attribute is not necessary in HTML5, because HTML assumes CSS for rel="stylesheet".
<link rel="stylesheet" href="path/to.css" type="text/css">
and
<link rel="stylesheet" href="path/to.css">
… do the same thing in HTML5.
Another, though less common, practice is to use an @import rule directly in CSS. Like this:
<style>
@import "path/to.css";
</style>
<style>
@import url("path/to.css");
</style>
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents