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

Webpage shows tags and coding

When I open my html doc in google chrome it still shows the tags and coding.

Hi Anna,

Can you please share your HTML so that we can more effectively troubleshoot it? If you're not sure how to copy/paste it properly you can refer to the Markdown Cheatsheet for support while posting. Essentially, you will wrap you code in 3 ticks (```) at the beginning and again at the end of your code, without the parenthesis.

3 Answers

It's possible you did not wrap your entire html document properly. Can you post the code you are using so we can see what the issue may be

It looks like this:

<!!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8"> 
        <title> My Page </title>
    </head>
</html>

Though when I open the doc in the web browser is shows it exactly as above (with tags).

Is that a bit more clear? Thank you!

Could be related to the incorrect doctype declaration. Try the correct HTML doctype:

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

Just took out the extra (!) and it hasn't changed the problem. Any other guesses? (I should also note that I have tried using safari and firefox and the same issue occurs).

Did you capitalize DOCTYPE and make sure that everything was formatted exactly as I posted above? If that's not working can you please post all of your code for the page, maybe something else is causing it.

Here it is:

<!DOCTYPE html> 
<html>
<head>
<title> title of the document</title>
</head>
<body>
The content of the body
</body>
</html>

So you setup a page with just that on it and when you view it in browser all you're seeing is tags?