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 trialMegan Yoon
Courses Plus Student 329 PointsI've added the 'src' but it's telling me that I haven't.
I don't understand what I'm doing wrong.
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script> src="shout.js" </script>
</body>
</html>
alert("Hello World");
4 Answers
Steven Parker
231,275 PointsThe attribute and value need to go inside the start tag:
<script src="shout.js"></script>
Brandon Leichty
Full Stack JavaScript Techdegree Graduate 35,193 PointsYou're SO close! This is kind of confusing. You actually have to include your src inside of the first script arrow-brackets, like this:
<script src="shout.js"> </script>
Hope that helps! Happy coding!
Brandon Leichty
Full Stack JavaScript Techdegree Graduate 35,193 PointsHa! You must have submitted your answer while I was typing out mine. Because this had no answers when I clicked on it. Funny! Let's just hope we're both right, otherwise that would be awkward ;)
Steven Parker
231,275 PointsThat happens to me all the time, particularly if I get distracted for while when composing an answer.
Brandon Leichty
Full Stack JavaScript Techdegree Graduate 35,193 PointsTreehouse community = much nicer than Stack Overflow folks.
Steven Parker
231,275 PointsThat's nice to hear. One possible factor in our favor is everyone is here for learning .. over there they might often be dealing with issues under pressure for business.
Megan Yoon
Courses Plus Student 329 PointsYou two have been so much help! That was the correct answer. Thank you so much!!! :)
Megan Yoon
Courses Plus Student 329 PointsMegan Yoon
Courses Plus Student 329 PointsThank you for your quick answer!