Href

100% Complete (success)

href="#" / >

Provide the relative or absolute URL as the value to the href="" attribute. This tells the browser where the document is located.

Linking CSS documents is the same process you’ve been using for other site files, such as images and videos.

External Style Sheets

Many sites also link to external CSS documents, which will be linked via an absolute URL.

HTML
<head>
  <title>Tuna the Cat</title>
  <link rel="stylesheet" type="text/css" href="https://codepen.io/rachelnabors/pen/bpAJH.css">
</head>

Internal Style Sheets

Internal files, like your own created CSS document, should be linked via relative URL.

HTML
<head>
  <title>Tuna the Cat</title>
  <link rel="stylesheet" type="text/css" href="./css/style.css">
</head>

NOTE: When linking the same stylesheet in your child pages, you would need to add an additional ‘dot’ to your file path (../) to move up a directory.