Problem with <script> on html codes?

iBan

New member
Here's part of my code:
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<link rel="stylesheet" href="res/jquery-ui-1.8.16.custom.css" type="text/css" media="all" />
<link rel="stylesheet" href="res/main.css" type="text/css" media="all"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="res/jquery-1.7.1.js" type="text/javascript"></script>
<script src="res/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
<div id="banner">
....

But, when I run the file, and inspect the codes, it become like this:

<!DOCTYPE html>
<html>
<head>
<title>Taspen Monitoring System</title>
<link rel="stylesheet" href="res/jquery-ui-1.8.16.custom.css" type="text/css" media="all" />
<link rel="stylesheet" href="res/main.css" type="text/css" media="all"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="res/jquery-1.7.1.js" type="text/javascript"></script>
</head>
<body>
" "
<script src="res/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<div id="wrapper">
<div id="banner">
....

notice that there's " " after the <body> tag and the "<script src="res/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>" is moved to below of <body> tag, not before the <body> tag.

Anyone know why this is happen? and how to fix it?
 
you have two similar files .js in header,think only one file is alowed in header and second is moved under....if you don't need one file ,delete....you can send me all html will checked for you....regards
 
Back
Top