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 trialDiego Vazquez
3,750 Pointshow do I do this
how do I do this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Once Upon a Time</title>
<style>
<body>
<h1>Once Upon a time</h1>{text-align:left; color:green}
</body>
<h1>Once Upon a time</h1>
</style>
</head>
</html>
Staff edit: Title edited for profanity
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Right now you have your <body></body>
inside the <style></style>
. The body should start after the <head>
. Here's how the structure should look (somewhat):
<html> <!-- html starts -->
<head> <!-- head starts .. because the head starts before the html ends it is inside the html-->
<style> <!-- style starts... because style starts before the head ends it is inside the head -->
</style> <!-- style ends -->
</head> <!-- head ends -->
<body> <!-- body starts -->
</body> <!-- body ends -->
</html> <!-- html ends
I think you can get it with these hints, but let me know if you're still stuck!