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 trialNatalia P.
353 PointsDoes the relationship attribute have to be specific?
In our current project Nick has us link a CSS stylesheet to our HTML document to "level the playing field" for style in our site. When he connects the CSS document he uses the link element like this:
<link rel="stylesheet" href="css/normalize.html">
My question is, does the rel attribute have to be "stylesheet"? Or can I call it anything else, like "styleleveler"? In other words, does the content of the relationship (rel) attribute have to be specific, or can it be anything and still work?
By the way, I am trying to get the technical terminology right here and what would you call the "thing" that comes after an attribute? Like "stylesheet" and "css/normalize.html"? Is that the "content" or "definition" or something else of the attribute? I know that the use of link in this case is called a self-closing link element and that it is made up of two attributes, but I am wondering about the attributes themselves.
Thanks so much!!
1 Answer
Dustin Matlock
33,856 PointsHi Natalia, you do have to specify that, and the term for it is Link types.
Natalia P.
353 PointsNatalia P.
353 PointsThank you so much Dustin! I wish Nick the instructor had mentioned that during his video. I left you a comment in my previous question btw.
Also, really quick, do you have to specify if a list will be ordered or unordered when making them? What is the point if you have to specify it and also if you don't have to then what is the advantage of specifying lists as ordered or unordered?
Dustin Matlock
33,856 PointsDustin Matlock
33,856 PointsSpecifying whether a list is ordered or unordered defines how the list will appear. For lists within navigation, list styles are usually removed. For more information, you might check out Lists in the Treehouse HTML course or Shay Howe's website.