Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Solution: Linking to the Stylesheet1:17 with Guil Hernandez
This video covers how to link one stylesheet to multiple HTML files.
All right, now I'll show you how I link each HTML page to the style
sheet located inside the CSS folder.
First in index.html, I set the link
tags href value to css/style.css.
And this changes the look of the page by applying the styles written in style.css.
Next, in about.html,
I added a link element in the head, and
set the href value to ../css/style.css.
So again, we're moving back to the root directory with ../,
then into the css folder to load style.css.
And now the About page takes on the CSS.
Finally, I used the same file path for
all three files in the posts folder, ../css/style.css.
And when I click over to a story, you'll see the style is applied to each page.
So that's it for this practice session.
I hope that you were able to complete everything successfully.
You're also going to learn a whole lot more about HTML and CSS here at Treehouse.
So thanks everyone, and happy learning.
You need to sign up for Treehouse in order to download course files.Sign up