Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Introducing JavaScript Link to an External Script

Looks like you have too many `<script>` tags. You only need one.

I added the script src into the html code and when i executed it, it told me I have too many <Script> tags. I also tried to use less script tags but it would give me an Syntax Error. I followed the correct way to link an html to a Js code, but for some reason it wont execute.

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="scripts.js"></script>

1 Answer

Steven Parker
Steven Parker
220,378 Points

Your first set of tags (the ones on a single line) load in the shout.js file. That's all you need for this challenge. The second set enclose some JavaScript code that you don't need because it's the same thing that's in the file that gets loaded.