user4762012
user4762012

Reputation:

Unexpected end of file looking for </head> tag in master page

  1. in master page I'm getting error saying - "Unexpected end of file
    looking for </head> tag
  2. can you show me where i did mistake with head tag ?

my design code of master page

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">

<title>Megashop</title>
    <asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">
    </asp:ContentPlaceHolder>        
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/common.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/ddsmoothmenu.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/jquery.elastislide.js"></script>
<script src="js/jquery.jcarousel.min.js"></script>
<script src="js/jquery.accordion.js"></script>
<script src="js/light_box.js"></script>
<script type="text/javascript">$(document).ready(function () { $(".inline").colorbox({ inline: true, width: "50%" }); });</script>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/orange.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/layout.css">
</head>

Upvotes: 1

Views: 2470

Answers (3)

Johnny
Johnny

Reputation: 19

If the comments include at least one "", you will receive that error.

Replacing that with simply "head" or entirely deleting the comment will resolve the issue.

Have a nice day!

Upvotes: 0

ahmadreza ranjbar
ahmadreza ranjbar

Reputation: 11

this problem is for when a head tag exist in your comments. example:

<!-- add to the <head> of your page -->

you should delete it.

Upvotes: 1

S.Krishna
S.Krishna

Reputation: 876

I've seen this error comeup when you use HTML5 Boilerplate. To fix it, look in your ASPX file for all comments, where you might have mentioned <head> (such as below) and remove them

<!-- add xyz functionality in <head> tag -->

Upvotes: 1

Related Questions