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

CSS Treehouse Club: CSS My First Web Page What's New in Your HTML

yaseen kabeer
yaseen kabeer
700 Points

is rel attribute mandatory ?

i didnt understand the significance of rel attribute , is it for our convenience ? it doesn't seem mandatory Cause when i removed rel attribute the page is still loading up
even when i changed the value from "stylesheet" to something other , the page has no difference

Can someone clarify

1 Answer

Maxime Duhamel
Maxime Duhamel
7,169 Points

Hi Yaseen,

It definitely need confirmation from a more advanced user but I think this is more a consistency problem.

HTML 5 and CSS 3 is probably understood and interpreted by modern browsers without those specifications but like many little things in the syntax it probably help insuring that the page is read and displayed in the way it intended to be.

For now i think it goes the same with rel and type and are they are used as hints by the browser to know how they should deal with your document, but as far as my knowledges go I tend to use them to avoid any problems.

Better safe than sorry? :)

Hope it helps and I am interested by a further technical explanation.

Max