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

JavaScript JavaScript and the DOM (Retiring) Getting a Handle on the DOM A Simple Example

Heading is not turning red when clicked

https://w.trhou.se/7ojranzxo3 I don't know why the heading is not turning red. I added a snapshot Thanks

1 Answer

Steven Parker
Steven Parker
231,268 Points

The script is not being loaded due to a spelling error.

On line 10 of "index.html", the code has "scr" instead of "src".

Thanks very much!!! that's a really stupid mistake...

Matt Coale
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Matt Coale
Full Stack JavaScript Techdegree Graduate 17,884 Points

Thanks! I made this same exact mistake by sheer coincidence 3 months later. Was boggling my mind as to why it wouldn't work. Strangely enough, the code worked fine in codepen. Go figure...