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
Anna Medina
Courses Plus Student 113 PointsWebpage shows tags and coding
When I open my html doc in google chrome it still shows the tags and coding.
3 Answers
Jovanny Elias
16,204 PointsIt'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
Anna Medina
Courses Plus Student 113 PointsIt 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!
mikes02
Courses Plus Student 16,968 PointsCould 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>
Anna Medina
Courses Plus Student 113 PointsJust 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).
mikes02
Courses Plus Student 16,968 PointsDid 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.
Anna Medina
Courses Plus Student 113 PointsHere it is:
<!DOCTYPE html>
<html>
<head>
<title> title of the document</title>
</head>
<body>
The content of the body
</body>
</html>
mikes02
Courses Plus Student 16,968 PointsSo you setup a page with just that on it and when you view it in browser all you're seeing is tags?
mikes02
Courses Plus Student 16,968 Pointsmikes02
Courses Plus Student 16,968 PointsHi 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.