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 Basics (Retired) Introducing JavaScript Review Introducing JavaScript

How is "<script src = 'app.js'> </script>" wrong?

I posted this question on reddit and no one knows why this is wrong.

2 Answers

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,242 Points

If you are actually writing it like <script src = 'app.js'> </script>, then it's incorrect because you have spaces before and after the equal sign, which is improper formatting.

I see. Is it really space sensitive or is it just for format sake? I'm not really familiar with html yet, and I wrote out some spaces for readibility in a few workspaces I believe and it ran fine.