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

General Discussion

Linking CSS to HTML

Hello, I have been taking treehouse lessons for a while now and I keep running into a very basic problem. I keep trying to link my HTML document to a CSS and failing. I'm using textmate.

here is the code I use:

<link rel="styleshet" href="styleme.css"/>

and I have another css open that I saved as "styleme.css"

what am i doing wrong?

4 Answers

James Barnett
James Barnett
39,199 Points

@Dan -

Assuming that the css & html files are in the same folder.

Try using:

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

@Dan ,

Hello my friend ,

there is a problem within your code

(styleshet) that what you wrote it should be (stylesheet) with double e

Cheers .

James Barnett
James Barnett
39,199 Points

@Omar - Good eye with that catch.

@jamesbarnett - hehe , Thank you ^_^ .