Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Treehouse Club: HTML Publish a Story Body, 1st level headline, and style tags

Feven Yimer
Feven Yimer
Courses Plus Student 525 Points

hello 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

    <meta charset="utf-8">
    <title>Once Upon a Time</title>
<style>h1(one-upon:a time)<\style>
<style>h1(   text-align:right;)<\style>
<h1> one upon a time<\h1>
<body><h1> one upon a time<\h1><boday>

1 Answer

<!DOCTYPE html>
    <meta charset="utf-8">
    <title>Once Upon a Time</title>
        h1 {text-align:left; color:green}


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.