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

Tessa Adikarie
Tessa Adikarie
1,383 Points

Created 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

I 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
seal-mask
.a{fill-rule:evenodd;}techdegree
Waqar Mohammad
iOS Development Techdegree Student 9,914 Points

You 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
Tessa Adikarie
1,383 Points

Thanks Chris for you fast response! I typed the same exact attributes you posted. All of the codes are showing up in the browser.