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

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

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,323 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. (: