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
Troy Tamminga
20,707 PointsGlobal Structure - Tags Show Up On The URL.
I'm trying to fallow the instructions for html web structure. Below is my html code in text editor. When I launch it in my internet browser, all of the tags show up and it doesn't show the typical finally version that all goes into the code as it does on sub line text. How can I get it to word on text editor and see it in its final version?
Troy Tamminga
20,707 PointsHere's my code
<!doctype html>
<html lang="en"> <head> <meta charset="utf-8"> <title>My Page</title> </head> <h1>This is a level 1 headline.</h1> <h2>This is a level 2 headline.</h2> <h3>This is a level 3 headline.</h3> <h4>This is a level 4 headline.</h4> <body> <p>Text Text Text Text. </p> <p>Text Text Text Text. </p> <p>Text Text Text Text. </p> </body> </html>
5 Answers
Charalampos Anargyrou
14,031 PointsStart with a new file. Select Make Plain Text from Format menu. Type your html code, then save with .html extension.
Charalampos Anargyrou
14,031 PointsHave you saved your html file with a .html extension? It sounds like you have saved your html file with .txt extension.
Troy Tamminga
20,707 PointsI'm on a mac with text edit. When I try to save the file as index.html, it won't let me. Instead, it says I cannot create an index html file using rtf. Then it has a pull down menu for me to select html format. So when I launch the file in the browser, it shows all of the tags.
James Barnett
39,199 Points> I'm on a mac with text edit.
Don't use text edit, install a text editor meant for coding such as the free text wrangler
Troy Tamminga
20,707 PointsI tried and it works great. Thanks a lot.
Troy Tamminga
20,707 PointsI tried and it works great. Thanks a lot.
Ryan Carson
23,287 PointsRyan Carson
23,287 PointsWe can't see your code. Can you please edit the post? Make sure to use ``` before and after the code so it's easy to read. Thanks!