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 trialJessica Landaverde
1,578 PointsCan I get the color changed to purple
na
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
<h1>Purple</h1>
2 Answers
Tianni Myers
10,453 PointsThe 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
Treehouse StaffYou 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
10,453 PointsHow do you add code snippets like that? Its easier to read lol
Brian Jensen
Treehouse StaffTianni,
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
Jessica Landaverde
36 PointsJessica Landaverde
36 PointsThanks