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 trialUnsubscribed User
10,222 PointsBummer! You haven't set the colors yet.
var bgColor = "blue"; var textColor = "#FF9933";
I try this code, however the code still runs as an error.
3 Answers
Erik McClintock
45,783 PointsPaulius/Logan,
Just to clarify, you'll want to put the script tags BEFORE the closing body tag, as follows:
<!doctype html>
<html>
<head>
<title>Here's My Title</title>
</head>
<body>
<p>Here is some body content for my webpage.</p>
<script src="myscript.js"></script>
</body>
</html>
Erik
Logan R
22,989 PointsI tried it just now and it worked so it might of just been a temporary bug. I would try refreshing the page and retrying the challenge.
Unsubscribed User
10,222 PointsWhere do you put the <script></script> tags in the page?
Logan R
22,989 PointsJust before the </body>
and </html>