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