Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Introduction to Programming Basics Writing Your Program

Anthony c
Anthony c
20,907 Points

Confusion on getting HTML to run

This is what I'm seeing:

http://i.imgur.com/xcHDtAs.png

how do I get it to display/run in the browser?

I have the file saved on my computer

Anthony c
Anthony c
20,907 Points

Okay, I opened the file in chrome and clicked inspect element. Now this is what I'm seeing.

http://i.imgur.com/Sz3diZg.png

Anthony c
Anthony c
20,907 Points

Okay... this is what I'm seeing:

  1. my html code in sublime http://i.imgur.com/AUOYVKT.png

  2. my .js in sublime http://i.imgur.com/SI036wD.png

  3. my screen when I open index.html in chrome then click inspect element to open the developer http://i.imgur.com/AZVG7as.png

  4. the src= file that is different then my code http://i.imgur.com/EObLJuO.png

what is going on here? You'll notice the error of java not "being found" in the third screenshot

This class is a little unclear compared with the newer class "designing a web page"

2 Answers

I would recommend using Workspaces instead of Sublime. It's an extremely powerful, free (with your monthly subscription to Treehouse) and simple tool we've created for you.

Anyway, on to your question ...

It looks like it can't find the file coding/myscript.js. This is probably because it's not in that directory. Double check that first.

Anthony c
Anthony c
20,907 Points

I figured this out! feel free to axe this question...

Was my answer above correct? I wouldn't mind getting it marked as 'Best Answer' :)