Link styles.css as the page stylesheet.
Acceptance criteria
- 1.Link styles.css as the page stylesheet.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <link> Tag chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “The tag defines the relationship between the current HTML document and an external resource. It is most commonly used to link external CSS stylesheets , but can also be used for favicons , preconnect , alternate languages , and RSS feeds .” .
1.Link a stylesheetexercise · easy · 10 min
Link styles.css as the page stylesheet.
Passes when: Link styles.css as the page stylesheet.
2.Set the rel valueexercise · easy · 10 min · practice plan
Mark the linked file as a stylesheet.
Passes when: Mark the linked file as a stylesheet.
3.Add a canonical linkexercise · easy · 10 min · practice plan
Point the canonical link at https://example.com/page.
Passes when: Point the canonical link at https://example.com/page.
4.Link and a headingexercise · easy · 10 min · practice plan
Link a stylesheet and add a heading that it would style.
Passes when: Link a stylesheet and add a heading that it would style.
5.Two links at onceexercise · medium · 10 min · practice plan
Add both a stylesheet link and a canonical link.
Passes when: Add both a stylesheet link and a canonical link.
6.Fix the missing relbug fix · easy · 8 min
Without rel the browser does not know what the file is.
Passes when: Without rel the browser does not know what the file is.
7.Fix the wrong attribute for the filebug fix · easy · 8 min · practice plan
link points at a file with href, not src.
Passes when: link points at a file with href, not src.
8.Fix the wrong rel valuebug fix · easy · 8 min · practice plan
A stylesheet is rel="stylesheet", not rel="style".
Passes when: A stylesheet is rel="stylesheet", not rel="style".
9.Fix the script used to load CSSbug fix · easy · 8 min · practice plan
A stylesheet is loaded with link, not script.
Passes when: A stylesheet is loaded with link, not script.
10.Fix the canonical pointing nowherebug fix · easy · 8 min · practice plan
The canonical link needs the page address.
Passes when: The canonical link needs the page address.
Between them these tasks cover link element, rel attribute and Stylesheets.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.