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

Madison Coviello
Madison Coviello
64 Points

Do I need CSS?

Do I need CSS, or can this be be done with only HTML?

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

Mark Trevathan
Mark Trevathan
8,153 Points

What is it exactly that you are trying to do? Right now you have a CSS style sheet linked to your HTML, but I don't see any CSS

What's the task's question? If i'm able to see that, I might be able to answer your question.

1 Answer

andren
andren
28,558 Points

For the second task: "Change the color of the h1 tag to purple." you do need to use CSS.

HTML is only used to describe the structure of a webpage, everything to do with styling, which includes things like colors, are changed using CSS.