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 trialPavneet Bolena
983 PointsI don't understand the question
It is telling me to change the color and i don't know how to do it?
<!doctype html>
<html>
<head>
<link href="styles.css" rel="stylesheet">
</head>
<body>
<h1><tag>Welcome to My Web Page!</p>
</body>
</html>
{h1: color; purple}
1 Answer
Steven Parker
231,236 PointsYou have several syntax errors.
And apparently, the challenge did not detect the ones in task 1. Let's start with that — you have:
<h1><tag>Welcome to My Web Page!</p>
First, "<tag>
" is not a real tag and does not belong in there. Then, when you change a tag you need to modify both ends (open and close) so they match. You forgot to change the end tag (</p>
) and the challenge didn't notice. So the line with correct syntax would be:
<h1>Welcome to My Web Page!</h1>
Then, for task 2 you have this CSS:
{h1: color; purple}
All the parts are there, but the punctuation is scrambled. The tag name should come before the brace, the colon goes between the property name and value, and the semicolon should go after the value. Then it would look like this:
h1 { color: purple; }
And at that point, it should pass the challenge (legitimately!).