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!
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
C. Aiello770 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> <html> <head> <meta charset="utf-8"> <title>Carolee Aiello | Web Designer</title> <link>rel="stylesheet" href="style.css"> <head> <body> <style>font-family: Garamond; font-size: 24px; text-color:Blue; </style> <h1>Carolee Aiello</h1><section></section> <footer></footer> </body> </html>
Simon Duchaine14,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 Visnesky20,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!