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 trialLok Khadka
11,967 Pointshow to change the color h1 tag to purple
how to change the color h1 tag to purple
<!doctype html>
<html>
<head>
<link href="styles.css" ref="stylesheet" purple>
</head>
<body>
<h1>Welcome to My Web Page!</h1>
</body>
</html>
h1 {
color: blue;
}
2 Answers
Cory Bolles
12,659 PointsHi Lok.
This one is a fairly simple change to the style.css file.
CSS, or Cascading Stylesheets, is a file format used to stylize your HTML markup. In this case, it's just a matter of changing the "color: blue;" attribute to read "color: purple;"
I hope this helps!
Cory Bolles
12,659 PointsI missed the change to the <link> element; Cynthia was right, it should be <link rel="stylesheet" type="text/css" href="styles.css">
Hirenkumar Patel
Courses Plus Student 9,464 PointsRemove purple word in link tag from HTML file and write following code in style.css h1 { color: purple; }
Cynthia Norwood
Front End Web Development Techdegree Graduate 15,214 PointsCynthia Norwood
Front End Web Development Techdegree Graduate 15,214 Pointsh1 { color: purple; } And the link to an external stylesheet goes like this I believe. <link rel="stylesheet" type="text/css" href="mystyle.css"> I believe that will work.