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 trial

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

Austin Norris
Austin Norris
1,724 Points

Am I doing something wrong on "Treehouse Club: HTML - Challenge Task 3 of 3"?

I feel like I'm doing exactly what the challenge ask but my code still comes up as incorrect in the editor. Is this a bug or am I just a goof?

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

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi Austin! It's not a bug. And you were doing just fine until you hit step 3 where it asks you to alter the CSS (styling of the text) that's already in place. Take a look at the code (upwards from where you were working) inside the <style> </style> tags. That's where the CSS goes for this challenge. And they've already started you out with some code, but it's incorrect. After changing this to the values they ask for, your challenge should pass.

I hope this helps, but if you're still stuck let us know! :sparkles:

Austin Norris
Austin Norris
1,724 Points

Ok thank you! I knew that I wasn't seeing something.