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 trialLarisa Hernandez
549 Pointsneed to add <h1>
i need to add a headline
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Once Upon a Time</title>
<style>
h1 {text-align:left; color:green}
h2{text-align:left;color:green}
<body> </h1>
body>
</head>
'<body>'
</body>
<once upon a time>
</html>
<h1>once upon a time</h1>
2 Answers
Justin Bilyeu
1,908 PointsYou're missing the opening h1 <h1> tag between the body closing tag </body> and the closing h1 tag </h1>
Owa Aquino
19,277 PointsHey Larisa!
There something wrong with your code.
1. is there some reason you enter the body tag and h1 tag inside the style tag?
2. you did'nt close your style tag inside the head tag.
3. '<body>' should be <body>
4. <once upon a time> is this supposed to be a text? if it is you should not enter them insite <>.
5. <h1>once upon a time</h1> and this should be inside the body tag and not after the html closing tag.
Hope this help.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Once Upon a Time</title>
<style>
h1 {text-align:left; color:green}
h2{text-align:left;color:green}
</style>
</head>
<body>
<h1>once upon a time</h1>
</body>
</html>