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

"don't forget your style tag" It's there! Please explain?

<style> h1{ color: green; } </style> <body> <h1>Mr John Wayne</h1> </body>

So where's the problem? Looks fine in "Preview"

5 Answers

Ryno Botha
PLUS
Ryno Botha
Courses Plus Student 4,055 Points

Make Sure it looks like this:

<body>
    <style>h1{color: green;}</style>
    <h1>Nick Pettit</h1>
</body>

Thanks for the advice, but no where in this introduction to HTML & CSS does if suggest the code needs to be on the same lines. Only stresses the order and just add to the existing lines as it builds up along the tutorial. Where is this mentioned? It still renders fine in the preview. How come there tutorial doesn't offer some advice, instead of just giving frustrating "BUMMER" comments with no assistance o move on?

Ryno Botha
PLUS
Ryno Botha
Courses Plus Student 4,055 Points

Haha yeah understand what you mean by that xD

And doesn't have to be on the same line ^^ you can also have written it like:

<style>
  h1{
    color: green;
}
</style>

Also it shouldn't matter, White Space is ignored ^^ So don't have to be in one line~ It is just that they asked you to write it above the <h1> tag, and usually just easier to write it in one like (like I did) when your only using one element. (Less Space Used)

Also (when not asked to do with a Style Tag) you can use this:

<h1 style="color: green;">Nick Pettit</h1>

Just moved on to the next section, Again have everything previewing right, but still getting BUMMER comment?

This one says: BUMMER, make sure you define the HTML Doctype tag. Do I have to use the "instructors" name to get the OK?

<DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>John Wayne Design : Design Consultant</title> </head> <body> <header> <h1>John Wayne Design</h1> <h2>Designer</h2> </header> <section> <p> Gallery will go here.</p> </section> <footer> <p>Ā© John Wayne Design 2014</p> </footer>
</body> </html>

Thomas Jones
Thomas Jones
1,951 Points

The HTML Doctype tag will go at the beginning of your document and will look something like this:

<!DOCTYPE html>