How to use an external css style sheet

Inside the <head> section of your html code,  open a <link> tag. There is no need to close the link tag with another tag. I closes with a slash like this: <link />. Look at the picture for correct placement:

where to put your link

Now just make sure your css file has the same name as in your html file (here it is called “sitecss.css”) and also make sure it is in the same folder as your html file. Referencing files in a different folder can be found in another lesson.

Casey Bradford

~ by caseybradfo on September 6, 2011.

%d bloggers like this: