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 to style tag???

ok it's a stupid question and as I'm very new to this and the fact that I do not understand most of the terms. This task is from challenge task 1 of 3. Feel free to treat me like a child. Thanks

5 Answers

Tim Knight
Tim Knight
28,888 Points

Imran, all they are asking for here is for you to add a style tag just above the h1, so it should look something like this.

<body>
  <style></style>
  <h1>Nick Pettit</h1>
</body>

Internal style sheets are mostly in the <head> tag, in this case should be above the body tag

            <style></style>
<body>
  <h1>Nick Pettit</h1>
</body>
            ``` 
Tim Knight
Tim Knight
28,888 Points

Piotr, you are absolutely correct as far as general syntax and structure is concerned, however the question in the challenge is specific to the location of where they'd like to see it added for the exercise.

"We’re starting out with an <h1> element and a <body> element. Add a <style> element just above the <h1>."

Tim, thanks for clarification, I just thought we should teach the correct syntax from scratch :)

<body> <style><style> <h1>Nick Pettit</h1> </body>

You guys are all great and thanks, but I followed all instructions in the video,

<style>

H1 { Color:blue; } <h1>my name</h1>

I sound like a bafoon yes I know, but truth is I'm jumping into this amazing sector with no knowledge., most of the technical terms I'm not familiar with. And again I really do appreciate the help.

Hi Tim, when I did as you wrote up, I was wrong and I got a comment: We can't see the h1 tag any more! Did you enclose it IN the style tag? Make sure to close the style tag with "</style>" BEFORE the h1 tag!

I did corect several on different way then yours, but now it doesn`t work!

What is problem?

Thank you!