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 trialFeven Yimer
Courses Plus Student 525 Pointshello place I can not figure out the last cod challenge please help me and thank you
hello please I can not figure out the last change cod someone helps me please and thank you
<h1>
<html>
<head>
<meta charset="utf-8">
<title>Once Upon a Time</title>
<style>h1(one-upon:a time)<\style>
<style>h1( text-align:right;)<\style>
</body><body>
<body><body>
<h1> one upon a time<\h1>
<body><h1> one upon a time<\h1><boday>
</html>helo
1 Answer
Brandon White
Full Stack JavaScript Techdegree Graduate 35,771 Points<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Once Upon a Time</title>
<style>
h1 {text-align:left; color:green}
</style>
</head>
</html>
OK. Hi, Feven Yimer,
So the code above ↑ is the code the challenge starts you off with.
The first thing you're asked to do, is add an opening and closing body tag. You've done that already, but an HTML document can only hold 1 opening and closing body tag, so you'll need to remove the extra body tags you've entered.
The second thing you're asked to do is to add an <h1>
heading with the text, Once Upon a Time. It appears that you've done this part as well, although you might want to make sure the case matches. So I would suggest capitalizing the first letter of the following words: Once, Upon, and Time. These code challenges can be a stickler for things like that.
Finally, you're asked to change the text-align to right and the color to red. For this it looks like you may have erased the code given an attempted to rewrite it, but to declare a css selector, the syntax/format is...
selector {
property: value /* ← i.e. border-raidus: 5px */
} /* ← curly braces, not parens */
Hope this helps.