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

Brian Kellione
Brian Kellione
1,424 Points

challenge 1 web design keep getting "don't forget style tag" message?

challenge 1 web design keep getting "don't forget style tag" message?

Stone Preston
Stone Preston
42,016 Points

can you post your code? you will have to format it using markdown to get it to show correctly. see this post for info on how to format your code

1 Answer

Collin Berg
Collin Berg
33,121 Points

i'm going to Guess you need to add a style tag inside of a div or h1 tag. like <h1 style="">Le Header</h1> This is called inline styling, its an old and outdated way of using CSS. But if you're on challenge 1, they are showing you how to do it this way before doing more advanced ways of linking to CSS

Elijah Gartin
Elijah Gartin
13,182 Points

If I'm understanding this correctly, as Collin is saying it should look something like this:

<h1 style="background-color:blue;">Header Text</h1>

What it may be asking you to do instead is put a style tag in the <head> of the html document.

      background-color: blue;

In the first example, the styling is done in an "inline" fashion and I believe it is considered an attribute of the tag. That means that you can apply style to a specific tag on a specific line in the code. The second example, the styling is done in a fashion that isn't completely external, but it separates the styling from the markup. In the second example, it is showing the style as a tag in the header with all the css selectors and attributes inside the style tags.

The "background:blue" is just an example of the styling you can do. It may be asking you to do something different, like make the background black, or change the font color to white.