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 Creating HTML Content Include External CSS

jlovellealfeche
seal-mask
.a{fill-rule:evenodd;}techdegree
jlovellealfeche
Front End Web Development Techdegree Student 7,738 Points

Hello i would like to ask about the <link> property with its values and property,

Hello i would like to ask about the <link> property with its values and property. Is it ok not to really put the type attribute in the link property? because I noticed that the type attribute is missing here that goes along with the rel and href. e.g <link rel="stylesheet" type="text/css" href="#"> i hope to hear from you guys soon thank you so much.

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Joan, Welcome to Treehouse.

The type attribute is optional but it's best to include it as it specifices explictitly what kind of file the document wants to display. I always include it when using the <link> but it's not absolutely neccessary. Only the rel and the href attributes.

jlovellealfeche
seal-mask
.a{fill-rule:evenodd;}techdegree
jlovellealfeche
Front End Web Development Techdegree Student 7,738 Points

Yatta! Thank you so much for the help Sir Jonathan. I'm a bit confused because i also use other resources to study CSS so i don't know which one to follow. Thank you again ŲŠ(āš‘❛ᴗ❛āš‘)Ûļ

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

It's always good to try multiple resources but Treehouse has your back! :)