Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations Getting Started with CSS Adding CSS to a Page

Varlan Allan
Varlan Allan
8,064 Points

Fill in the Blank

This area is a really bad idea as it gives no clue to how you are to answer the question. Is it to be a word? Is it to be the actual code reference? It is not made very clear.

3 Answers

Yusuf Bagha
Yusuf Bagha
24,370 Points

I'm not sure what you are asking but,

The way to link a CSS document is

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

For Example: main.css or style.css or secondary.css

If you are asking about the short quiz they give you, its usually the actual code reference!

Varlan Allan
Varlan Allan
8,064 Points

Thank Mhd,

But according to the question that was asked, the answer was, 'rel'

The question asked, 'The ____ attribute specifies the relationship between web pages.'

Or something similar to this. The key word is ATTRIBUTE and rel is an attribute of the link element.

Sorry for not specifying the question.

Yusuf Bagha
Yusuf Bagha
24,370 Points

For some reason the line of code I put in between the 2nd and 3rd line didn't show up, that's weird

Maybe it will show up this time, I put it underneath this sentence.

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