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 trialDeJuan Marshall
103 PointsReally not understanding the style tag
what to do after i add the styles
<style>
<body>
<h1>Nick Pettit</h1>
</style>
</body>
2 Answers
Jacob Mishkin
23,118 Pointshey! you are really close on this one. The questions asks you to put a style tag above the h1 element. you have opened the style tag above the body tag. so it should look like this:
<body>
<style>
</style>
<h1>Nick Pettit</h1>
</body>
The Style tag is a declaration where the browser will read the CSS styles and apply the code to the HTML elements like the H1 tag.
Here is a good resource about style tags:
Clayton Tevebaugh
7,617 PointsThe style tag is a tag used to contain CSS in an HTML document. Because of this you shouldnt wrap HTML in a style tag, but instead put CSS inside.
So try this.
<style></style>
<body>
<h1>Your name</h1>
</body>