Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property


do style tags come before h1 tags?

1 Answer

Aisha Blake
Aisha Blake
Treehouse Guest Teacher

If you're using an internal stylesheet, your style tags will generally be in the head of your document:

    h1 { 
  <h1>Your Main Heading</h1>

If you're using inline styles, the style tag will actually be an attribute within your h1 tag, or whatever element you're styling:

<h1 style="background-color: black; color: white...">Your Main Heading</h1>