Attaching a CSS style sheet to your site

This tutorial covers how to attached a CSS style sheet to your website.  A CSS style sheet is a great tool for styling your website.  Instead of having all of your CSS code in the header of each individual page, an external style allows you to have all of your styles located in one document, which is very helpful.  First of all 1 style sheet allows you to make changes really fast!  If you want to change the background on every page of your site all you need to do is change the color on your style sheet and bam, every page is change.  Or if you want to change the color of all of the links on your site, all you need to do is change the line of code in your style sheet for link color and bam all of the links on your whole site are change.  If you want to change….[I think you get the idea, external style sheets make updating your website a breeze, plus you code looks much nicer]

Ok so lets get to the acual code here, you will want to add the following line of code to the header of you webpage just below the title tag:

<link rel=”stylesheet”  type=”text/css”  href=”yourstylesheet.css” >

And that’s it, you now have your style sheet attached.  If you have any questions as always feel free to drop us a comment and a member of our team will get back with you.

Leave a reply

Close