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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Style tags, it works great in workspace but when I do the challenge, I keep getting a message don't forget style

why does this work in workspace but not in the challenge

4 Answers

Wayne Priestley
Wayne Priestley
19,567 Points

Hi Gene,

Sorry about that, I thought you were talking about html not your css.
Your code is fine, it should pass.

Are you typing in the code or pasting it? (try doing the opposite)
Try logging out then back in.
Try restarting your browser.
Try using a different browser.

They are all my usual suggestions for this problem.

Hope this helps.

Ben Holland
PLUS
Ben Holland
Courses Plus Student 4,062 Points

If you post the code you want to try by commenting on this answer .

Wayne Priestley
Wayne Priestley
19,567 Points

Hi Gene,

Does your code look something like this?

Where did you add the <style></style> tags?

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

<style>

h1 { color: blue; }

</style> <h1>Gene Irish</h1>

Hi Gene,

Is you CSS in a different stylesheet or is it embedded in the html page ?

Peace,

Nam