Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

please tell me now what mistake i did ?

help again or please tell me how can screw my mouse on the next vedio

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

    <style>
      h1{color:purple;}

    </style>

  </body>
</html>
styles.css

2 Answers

Martin Jones
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Martin Jones
Front End Web Development Techdegree Graduate 43,232 Points

change the <p></p> tags to <h1></h1>

Then you just need to move the style for the h1 element to the style.css file, click on this tab in the challenge.

Then move your style to this file:

h1{color:purple;}

You do not need the style tags because you are already in the stylesheet.

Ari Misha
Ari Misha
19,274 Points

Hiya Hanan! There are two ways you can add your css to your HTML file. First one is using <script> tags. Its fairly simple and its better for small codes of css, And the second method is using <link> tag to link css files in <head> tag to your HTML page and its the most common way to render css files to your HTML. You can use the either one, NOT both. Since they already used <link> tag to link css to the HTML, you cant use <style> tag.

Now regarding the question. In the first part you need to replace <p> with <h1> tag(dont forget to close h1 tag). After you're done with with part one, head over to "styles.css" file, and write your styling for HTML page. Since you need to change the color of "<h1>" tag, type your styling exactly this way(mind the details and syntax, details matter in programming): h1 {color: purple} and you are good to go. I hope it helped. (: