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 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

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.