Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS jQuery Basics (2014) Introduction to jQuery What is the DOM?

Ahmed Hassan
Ahmed Hassan
5,533 Points

How do I link a jQuery file into my HTML document? I don't get the //code.jquery.com.. stuff.

Also do I have to specify the type text/javascript ?

2 Answers

Go to the Jquery website and follow the instructions for using the CDN is my advise, Then you copy and paste the CDN link under your CSS link on your index page, and put your JQ page link inbetween your script tags.....simple as that!

Vote my up to the top if ya can :-)

Ron

ywang04
ywang04
6,762 Points
<script src="http://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript" charset="utf-8"></script>