We will require a link to the exercise so we can review the material and test the solution given above. Please post the URL in the location bar of your exercise window. Thanks.
To review, what is the
<link> element and how might it be used?
It can be used in the
<head></head> element only, and will always have an
The above is valid HTML5 but it makes two assumptions. One, that the browser will recognize its MIME type from the file header; and two, that it will recognize it as a style sheet so it get properly parsed into the DOM. Fortunately in the majority of modern browsers we can safely make these assumptions since HTML5 has made the type and relation both moot, or rather, de facto.
The earlier example does not make those assumptions and includes both the
type and the
rel attribute with explicit values which would be needed still by older browsers.
href is always a URL to an external resource, external meaning separate from the document
html file. It can be anywhere on the network, local volume, another computer, a web server or content delivery network. For our purposes at present the file is in the same directory as the HTML page,