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

christopher brown
christopher brown
1,339 Points

css vs htmi changing colors

It wants me to change a color of the text to purple using htmi; I was under the impression that you can only do that using css can you help me get some clarity on this so I can move on?

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

    <h1>Welcome to My Web Page!</h1>

  </body>
</html>
styles.css

1 Answer

Ari Misha
Ari Misha
19,323 Points

Hiya Chris! Styling your web page can be done in many ways. Using external stylesheets is the most used way to style your web page and most recommended one as well. But there are other ways as well, like you could style your web page using <style> tags directly on your HTML. It'll override any style that exists for the same element or class or id in your external style sheet, right? There are other ways as well like you could do it via JavaScript as well. But using external stylesheets is the most recommended one. I hope it helped. (: