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 Introduction to HTML and CSS (2016) Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

how to change my h1 tag to purple when still on the HTML tab. I thought that could only be done by switching to CSS tab?

I am completing the challenge task for intro to HTML and CSS; but its asking me to change the color of my h1 tag without be being able to switch the tabs to CSS.I though this was where i should be able to change the color.

<!doctype html>
    <link href= "styles.css" rel="stylesheet">

    <h1> purple </h1>


1 Answer

Shadab Khan
Shadab Khan
5,470 Points

Hi Tifara,

In the style.css file, you need to write the CSS rule-set, which would be like so:

h1 {
color: purple;

Let me know if you still have any further questions.