How do you link a CSS document to a HTML file?

Both files need to be stored within the same folder. Once this has been done, within the <head> tags of your HTML file (the header), you will need to create a link to the CSS file.
This is done by using the <link> tag, as seen below:<link rel="stylesheet" type="text/css" href="filename.css">where filename is the name of the CSS file you wish to link.

Related HTML and CSS Mentoring answers

All answers ▸

How can I express x^2 - 7*x + 2 as (x - p)^2 + q ?


How to create a secure password?


What's the difference between por and para in Spanish?


What's wrong with the following HTML markup: <p style"font-size:10px;">Copyright <span>2015</span></p>?


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences