Totally lost.. "Linking your HTML and JavaScript Files"

jquery

#1

I just finished JavaScript and started jQuery. so far I'm completely lost, probably because its been awhile since I've done HTML and CSS. I would share my code and ask for corrections, but I don't even know where to start! helppp

here's the code from the script.js page.
$(document).ready(function(){

});

Click here for the lesson I'm on.


#2

Hi Nan,

Start by copy/pasting your code into your post and formatting it, posting a link to the exercise you're on, and the error message you're getting.


#3

Just need to link to the js file in the html. Between the tag

<head>
        <script type="text/javascript" src="script.js"></script>
</head>

#4

I am totally lost as well, the hint is not getting me there


#5

@waxmartingmail.com

Could you provide more details so we can help you?


#6

I figured it out a couple days ago..

heres the html code

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <!--Add your script tag here.-->
        <head>
        <script type="text/javascript" src="script.js"></script>
</head>
    </head>
    <body>
        <div></div>
    </body>
</html>

and here's what was already in the script.js tab:

$(document).ready(function(){

});

hope this helps :smiley:


#7

@nanner99 At a glance, that HTML code looks fine, except for your extra <head></head> tags. You should remove those :slightly_smiling: