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

HTML HTML Introduction Global Structure: Part 2

brightcricket
brightcricket
4,590 Points

I am using Text Editor on my Mac and plugging the codes. Why is web browser giving me different view?

My web browser is not taking in the coding and not showing the title "My Page" as the tab title or browser title and treating each line item as if it were body of document. What can be causing this?

4 Answers

1 - One thing may be that the file extension of where you wrote your code may be wrong (Instead of ".html" maybe ",html" or ".htm"). Although this is probably the least likely scenario, it's a good idea to check.

2 - Another factor may be your web browser, if you have a very outdated version of one there may be a bug which causes that to occur.

3 - It might be that when you made the html tags, maybe you forgot to add the > or < at either side? Like I said again, a small possibility but people often overlook it.

4 - Try (if you already didn't) adding the <!DOCTYPE html> tag to the top of your script. Not sure if it will help or not but a lot of people will leave this out because its for the most part optional.

5 - The Text Editor on the Mac has been known to have a few issues when it comes to scripting (at least in my experience), one solution I found was that when I changed the style of the Text Editor from what I believe was " Fancy" to "Plain", a few errors/bugs were instantly fixed.

I hope the you get your problem sorted out, and if you do, let me know. Best of Luck!

brightcricket
brightcricket
4,590 Points

Thank you for responding, Masaya! I appreciate the help! I reviewed all your points and it hasn't helped me achieve the desired result...perhaps a better text editor?

Yeah, in this case I guess there would be no other option. I agree with you about changing the text editor. Possibly Sublime Text 2? (A personal favorite). I hope changing the Editor solves your issues and if not, I would turn to directly contacting one of the staff members at Team Tree House.

Gaoyuan Chen
Gaoyuan Chen
2,546 Points

I had the same issue and sublime text is the best way solved my problem, thanks Ryo!

brightcricket
brightcricket
4,590 Points

genius! works like a charm and has a better look and feel :) Thank you so much!

Glad that it worked and happy to have helped!