Taeyoon Choi Taeyoon Choi - 3 months ago 13
Javascript Question

Javascript file isnt linking with HTML file

<!DOCTYPE html>
<html>
<head>
<title></title>
<link href='css/stylesheet.css' rel='stylesheet' type='text/css' />
<script src="jscript/jquery.min.js"></script>
<script type='text/css' src='jscript/script.js'></script>
</head>

<body>
<div></div>

</body>




That is my HTML and here is my javascript

$(document).ready(function(){
alert("Hello World");
});


For some reason, I can't figure out for the life of me why the two files aren't linking. The index.html is in the main folder with the jquery and jscript files being in the jscript folder.

Answer

type='text/css' should either be type="text/javascript" or omitted

Comments