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

Patrick Lange
Patrick Lange
515 Points

How can I change the h1 tag to purple? and is there anyway of getting this answer in the workspace?

css

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>

    <p>Welcome to My Web Page!</p>

  </body>
</html>
styles.css

2 Answers

jason chan
jason chan
31,009 Points

html

<h1>Welcome to My Web Page!</h1>

css

h1 {
color:purple;
}

There are tabs. One is the html file and one is the css file.

You need to use CSS to change the color

h1 {
  color: purple;
}

No there is no way to validate challenge questions in workspaces. Other than you opening a workspace and typing the code in just to see what it does. But workspaces and challenges are not linked in any way.

Hope this helps! -Shawn

jason chan
jason chan
31,009 Points

It's not workspace. It's a code challenge. It's exercise after a video.

@Jason Chan I know :) He specifically asked in his question: ... and is there anyway of getting this answer in the workspace?