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 trialHerman Vicens
12,540 Points<script scr=
what is wrong with this? <script scr="Shout.js" ></script>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaScript Basics</title>
</head>
<body>
<script scr="Shout.js"></script>
</body>
</html>
3 Answers
Julian Gutierrez
19,201 PointsSimple typo, it should be src not scr.
andren
28,558 PointsThere are two issues:
You have a typo, scr should be src.
Filenames are (on many systems) case-sensitive. So Shout.js and shout.js are not the same file.
If you fix the typo and fix the capitalization on the filename like this:
<!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>
Then your code will pass.
Stephan Olsen
6,650 PointsIt's src and not scr.
// Wrong
<script scr="Shout.js"></script>
// Right
<script src="Shout.js"></script>