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.

HTML HTML Text Paragraphs and Headlines

Thomas O
Thomas O
13,120 Points

My webbrowser is not only showing the website but also all the html tags. How can I get rid of the html tags?

Cannot preview the website I'm creating properly because I see the oroginal code instead of the product (the website) ...

7 Answers

Hi Thomas,

What editor are you using? If it's a word processor and not a text editor then that might explain it.

Thomas O
Thomas O
13,120 Points

I downloaded a new text editor (TextMate) .... now it works ...

Hi Thomas,

Glad you figured it out. Yes, textedit is a word processor and so you would want to switch to a text editor like you did. There's also Sublime Text.

Anthony Moore
Anthony Moore
6,680 Points

Are all of your tags closed? Sometimes if a tag doesn't get closed, everything after it will get put on the page. Maybe you forgot to put a </p>. Also, how are you doing it? Is it with CodePen or on your computer? If you're using CodePen, you can drag the HTML page preview to be bigger.

Thomas O
Thomas O
13,120 Points

Hi Anthony and Jason,

thank you for your answers ... I am using TextEdit ... below you find my html structure ... as you can see all the tags are closed ...

<!doctype html>

<html lang=“en”> <head> <meta charset=“utf-8”> <title> My Page </title> </head>

<body> 
    <h1>  This is a level 1 headline </h1>
    <h2>  This is a level 2 headline </h2>
    <h3>  This is a level 3 headline </h3>
    <p>
        bla bla
    </p>
    <p>
        bla bla
    </p>
    <p>
        bla bla
    </p>
</body>

</html>

Thomas O
Thomas O
13,120 Points

ok ... now I have the exact opposite problem: I copied the code and pasted it into a new TextEdit file, which I saved (as html). When I opened the file in the browser I it was only showing the website without the html tags (which is good). But when I opened the file with TextEdit it was also only showing the website without the html tags (which is bad because I can't see my code anymore now) .... So what I see in the browser seems to be always the same as what I see in my text editor ... which shouldn't be the case! ... What's going on here?

Anthony Moore
Anthony Moore
6,680 Points

Hi Thomas. I was sitting here puzzled over your problem and then I noticed you got it fixed. I'm glad. I got TextMate and TextEdit mixed up. I'm not sure, but from searching around I think you can set TextEdit to use only plain text. If you do that, it will work with HTML.

Thomas O
Thomas O
13,120 Points

Hi Anthony,

I also tried setting the format of TextEdit to Plain Text but still the browser showed all the html tags. ... I don't really care why because I'm now using TextMate anyway and it works. Thank you for your help with getting that problem fixed.