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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

C. Aiello
C. Aiello
770 Points

Once I have a basic html document, how do I add css?

How do I get the css in the next tab over from index.html?

<!DOCTYPE html> 
    <meta charset="utf-8">
    <title>Carolee Aiello | Web Designer</title>
    <link>rel="stylesheet" href="style.css">
        <style>font-family: Garamond; font-size: 24px; text-color:Blue;
        <h1>Carolee Aiello</h1><section></section>

2 Answers

Simon Duchaine
Simon Duchaine
14,441 Points

First of all, your link markup is not written well. It need to be like this (inside the self-closing tag):

<link rel="stylesheet" type="text/css" href="style.css">

Then, be sure you've created the style.css file inside your folder.

Angela Visnesky
Angela Visnesky
20,927 Points

Hi Carolee, In addition to Simon's response, make sure you include that link in the head of all of our pages. Also, your style block should be moved to the head. Hope this helps!