External CSS stylesheet does NOT work.
<head>
<title>
My Site
</title>
<style>
<link rel="stylesheet" type="text/css" href="design.css">
</style>
</head>
I cannot figure out how to fix this. The style sheet is completely unaffected by the style sheet.
+3
CoenRox36
source
to share
2 answers
link
should not be placed in a tag style
. Correct example:
<head>
<title>
My Site
</title>
<link rel="stylesheet" type="text/css" href="design.css">
</head>
+5
Winestone
source
to share
<head>
<title>
My Site
</title>
<link rel="stylesheet" type="text/css" href="design.css">
</head>
Don't use style if you want to link external stylesheets, Use style only when you need to write css in the html document itself.
For more information: http://www.w3schools.com/css/css_howto.asp
+2
akshaynagpal
source
to share