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 trialedvincalderon
Courses Plus Student 2,896 PointsYour paragraph needs to go between the <body></body> tags error.
Don't know what I am doing wrong.
<!--This is my TeamTreeHouse WorkSpace Backend editor. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.-->
<!DOCTYPE html>
<html>
<head>
<title>Team Treehouse WorkSpace</title>
<meta charset="utf-8">
<style>
h1 {text-align: center; color: blue}
h2 {text-align: center; color: red}
</style>
</head>
<body>
<h1>My Workspace</h1>
<p> "My first paragraph!" </p>
</body>
</html>
4 Answers
Angela Visnesky
20,927 PointsHi Edvin, I have noticed that the challenges ask for very specific responses. You may want to eliminate your extra code and go with
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>My first paragraph!</p>
</body>
</html>
Hope this helps!
edeharrison
Full Stack JavaScript Techdegree Student 11,127 PointsHi Edvin,
Your code is almost perfect. Except, CSS styles should always be written with this general construction:
h1 {color: blue;}
or, with some indenting:
h1 {
color: blue;
}
In a couple of your styles you are missing the semi-colon on the end.
All the best,
Ede
edvincalderon
Courses Plus Student 2,896 PointsThanks.
Unsubscribed User
5,512 PointsTry adding semi-colons after your color
CSS declaration:
<style>
h1 {text-align: center; color: blue;}
h2 {text-align: center; color: red;}
</style>
edvincalderon
Courses Plus Student 2,896 PointsFor some reason I am still getting the same error :( This is what I have thus far with the edits: <!--This is my TeamTreeHouse WorkSpace Backend editor. Use the <p> tag to start a new paragraph and </p> at the end of each paragraph.--> <!DOCTYPE html> <html> <head>
<title>Team Treehouse WorkSpace</title> <meta charset="utf-8">
<style> h1 {text-align: center; color: blue;} h2 {text-align: center; color: red;} </style>
</head>
<body>
<h1>My Workspace</h1>
<p> "My first paragraph!" </p>
</body>
</html>
edvincalderon
Courses Plus Student 2,896 PointsIf I do this it tells me to go back to the first step.
miikis
44,957 PointsAngela Visnesky is correct βΒ the challenge did not ask you to fill out the head tag or add an h1 to the body tag. Other than those minor snafus your final code should look something like this:
<!DOCTYPE html>
<html>
<head></head>
<body>
<p>My first paragraph!</p>
</body>
</html>