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
Hannah Tryon
279 Points"Images and Lists" Lesson - Titles
Deets: Firefox-Windows-Sublime Text 2
Okay, so this may be a major newb move on my part, but every time I try to open the index.html file in my browser, it tells me it can't find the file. Ctrl+O zips right to where I saved it, but when I try to open it the tab fills up with the file path and not the title (Which was sort of the whole point.).
I'm not really sure what I'm doing wrong. What would make it do that?
3 Answers
James Barnett
39,199 PointsI'm guessing you are just starting HTML and your created an html file that contains a title and maybe a paragraph. You got the file to open up in your web browser, but it isn't showing the title for the web page like it's supposed to.
The reason is probably that there's an issue with your HTML, to figure out your issue exactly we'll need to see the code you are using. You can check the Tips for asking questions video in the right-hand column of this page, for some tips on posting code on the forum.
Sam Lillicrap
12,127 PointsAre you incorrectly inputting the file path into the browser? I'm not sure I quite understand - try locating the index.html file and just clicking on it instead perhaps
Gunjeet Hattar
14,483 Points- Try clicking on the file directly (index.html) from where you have saved it
- Use the file -> open command from the browser
- Drag and drop your index.html file on to the browser (supported by most browsers)
But just so to check write a small piece of html on text edit or notepad and save it as somename.html on to the desktop
What looks like your problem is that your file is saved somewhat like index.html.txt . So when you crtl+o is saves it as a zip coz it takes it as a file and when you add it to the browser it shows you the full link. After you save the file if it shows an icon of the web browser then you have saved it correctly as .html else you will need to reveal your file extension and delete the suffix after .html . Or right click the index file and see its properties. If it says text file then you probably have to change its extension.
Hope this help. But do get back if it doesn't work out
Hannah Tryon
279 PointsHannah Tryon
279 PointsI don't know what happened, but I moved the file to another folder and resaved it and now it works fine. I didn't change anything about the code or how I was doing it. But thanks for answering, anyway!