0

Unfortunately I didn't know how to name my question correctly.

I saw 2 different implementations on how to import a css file in a html file.

Solution 1:

<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="../styles.css" />

Solution 2:

<style type="text/css" media="all">
@import  "../styles.css";

I would like to know what the difference is and if one solution should be preferred over the other.

Thank you.

tmighty
  • 8,222
  • 19
  • 78
  • 182

0 Answers0