link
tag doesn't have a close tag, . As such, it's invalid. If you want to close it inline, do it like this:</link>
<link ... />
Also, you need to shift your <noscript>
tag inside the body
tag and between the head
tag as it contains text content.
Though, using something like this is valid if you place in the head
tag 1.
<noscript><link href="style/theme.css" rel="stylesheet" /></noscript>
1. In a head element, if scripting is disabled for the
noscript
element
Thenoscript
element must contain onlylink
,style
, andmeta
elements.In a head element, if scripting is enabled for the
noscript
element
Thenoscript
element must contain only text, except that invoking the HTML fragment parsing algorithm with the noscript element as the context element and the text contents as the input must result in a list of nodes that consists only oflink
,style
, andmeta
elements that would be conforming if they were children of thenoscript
element, and no parse errors.
Correct Markup
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Title</title>
<script src="script/myScript.js" type="text/javascript"></script>
<link href="style/theme.css" rel="stylesheet" />
<!--[if lte IE 8]>
<link href="style/themeIE8.css" rel="stylesheet" />
<![endif]-->
</head>
<body class="layout">
<noscript>Please enable JavaScript in your browser to view this page properly, to view the basic page of the site click the link <a href="no-javascript/main.aspx">main.aspx</a>
</noscript>
<div class="header"></div>
<div class="content"></div>
<div class="footer"></div>
</body>
</html>