Hello all,
I am starting on a final project for an entry level javascript class. The assignment does not seem to difficult but wouldn't you know that I am stuck on the very first part. I am supposed to have the very first line of the page <h1> my name</h1> in an external .js file. I cannot get it to work for some reason.
This is what I have so far:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Web 115 Final Project</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<script type="text/javascript" src="projectjs.js">
</script>
</body>
</html>
This is what the projectjs.js looks like:
<h1>
my name
</h1>
What am I doing wrong?
Thank you for any help!



Reply With Quote



Bookmarks