Page 1 of 1

Best way to include a stylesheet

Posted: Tue Dec 09, 2008 3:04 pm
by icesolid
What is the best way to include a style sheet into the head of a HTML document?

This:

Code: Select all

<style type="text/css" media="all">@import url("../styles/global.css");</style>
OR:

Code: Select all

<link rel="stylesheet" href="../styles/global.css" type="text/css" media="all" />

Re: Best way to include a stylesheet

Posted: Tue Dec 09, 2008 3:20 pm
by kaszu
I think <link /> because using <style> tag and css declaration just to include other css is unnecessary if that can be done with just a tag.