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.
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?
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!
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?
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!