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

Can I get the color changed to purple

na

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

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

  </body>
</html>
styles.css
<h1>Purple</h1>

2 Answers

Tianni Myers
Tianni Myers
10,453 Points

The color of the <h1> to purple?

Step 1. Target the HTML element. h1 { }

Step 2. Add the attribute and value

h1 { color: purple; }

Brian Jensen
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Brian Jensen
Treehouse Staff

You were on the right track!

h1 {
  color: purple;
}

Don't worry, all of this syntax gets explained in great detail in future videos.

Tianni Myers
Tianni Myers
10,453 Points

How do you add code snippets like that? Its easier to read lol

Brian Jensen
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brian Jensen
Treehouse Staff

Tianni,

Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting. Such as writing css after the 3 backticks in this case.

For more info on Markdown: http://daringfireball.net/projects/markdown/basics