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.

Tessa Adikarie
1,383 PointsCreated index.html page...
and typed attributes from Deep Dive/HTML/Global Structure 1 and 2. All the attributes are showing up in the browser instead of the content I have inside of the title and div tags. What am I doing wrong?
4 Answers

Chris Howell
Python Web Development Techdegree Graduate 49,610 PointsI think some of your code was cut off? You have to put 4 spaces for every line of code. Or it wont be placed inside the grey code block like the your other code was. So here is a basic frame. Make sure you open and close tags properly.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Page</title>
</head>
<body>
<div class="">This is a div</div>
</body>
</html>

Waqar Mohammad
iOS Development Techdegree Student 9,914 PointsYou have quite a few things missing. Please see below. "My Page" won't show unless you put it in the body (I have not done that), you could have a go?
<! doctype html>
<html lang= "en">
<head>
<meta charset= "utf-8" >
<title>My Page</title>
</head>
<body>
<div class="">This is a div</div>
</body>
</html>

Tessa Adikarie
1,383 PointsThanks Chris for you fast response! I typed the same exact attributes you posted. All of the codes are showing up in the browser.

Tessa Adikarie
1,383 PointsThanks Waqar.