Put this in the <HEAD> section of the HTML file:
Code:
<link rel="stylesheet" href="js_styles.css"
type="text/css" />
You obviously would have - in this case - a "js_styles.css" file in the same directory as the HTML file, otherwise you would have to "point" to it. And a .js file as well.
Also, there is a .js reference down at the bottom of the code, for the .js file...
EDIT: Here is an example.... Try that out if you like.
Code:
<html>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<link rel="stylesheet" href="js_styles.css"
type="text/css" />
<script type="text/javascript">
document.write("<h1>Don's Jungle Tours</h1>")
/* <![CDATA[ */
//Code written by: Eric Maddan
//Date:1-21-09
//Case Project 1-4
/* ]]> */
</script>
</head>
<body>
<h2>Adventure</h2>
<script type="text/javascript">
/* <![CDATA[ */
document.write("<ul>");
document.write("<li>Ecotourism is our specialty</li>");
document.write("<li>Get up close and personal with nature</li>");
document.write("<li>Destinations include Africa, South America, and Asia</li>");
document.write("</ul>");
/* ]]> */
</script>
<h2>Excellence</h2>
<script type="text/javascript" src="travel.js">
/*<![CDATA[ */
/* ]]> */
</script>
</body>
</html>
*code by Eric Maddan (oldskool)
this solution was for a problem in Javascript 4th Edition by Don Gosselin