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

what is a style tag

style tag

    <h1>Nick Pettit</h1>

3 Answers

28,736 Points

It's within this tag you put all your css classes, ID, all selectors and rules to style your webpage. Most often css styles are declared in a separated stylesheet, but sometimes you can style the page by adding styles directly within the page you are working on, using the style tag.

It's where you can put the style information for a page or part of a page. You will learn that you can use a style tag but it's better to use external stylesheets instead.

Adam Hire
Adam Hire
2,917 Points

As the other 2 folks above me said, the <style></style> are essentially tag that can be used to add some flare to your actual "base" page(index.html if you are mostly starting on the videos here). You can almost entirely replace it with proper CSS use as you get more comfortable.