<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<head>
<title>temp</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
<script type="text/javascript" src="this.js"></script>
</head>
<body onload="init()">
</body>
</html>
Do you see more than 1 opening head tag? Because both firefox and the w3 markup validator claim I already have an open head tag before the first one I can see…
The
metatag must be in aheadtag. If it isn’t, theheadtag will be implicitly opened.Since your
metatag is before yourheadopening tag, theheadtag is implicitly opened, themetatag is inserted, and then you explicitly openhead.To fix this, move the
metatag to somewhere after you openhead(but before you close it).