HTML Link Tag Syntax Reference for External CSS Files
While this tutorial has content that we believe is of great benefit to our community, we have not yet tested or edited it to ensure you have an error-free learning experience. It's on our list, and we're working on it! You can help us out by using the "report an issue" button at the bottom of the tutorial.
Insert an external CSS file in your HTML file like this. Remember to add this tag in the <head> section of the document:
<link rel='stylesheet' href='style.css' type='text/css' media='all'>
The media attribute is optional and it narrows down the scope of the stylesheet to certain devices. Here are the possible values: all, aural, braille, handheld, projection, print, screen, tty, tv.