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 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' :)