1. Home
  2. Computing & Technology
  3. Web Design / HTML

How do you link an external style sheet?

By Jennifer Kyrnin, About.com

Question: How do you link an external style sheet?

Answer:

External style sheets allow you to define your styles in one place and use the same styles on different pages of your Web site. It is easy to link to an external style sheet.

First, save your style sheet to a location on your Web server.

http://www.yourserver.com/styles.css

Then link to it in the <head> of your document.

<head>
<link rell="stylesheet" href="http://www.yourserver.com/styles.css" type="text/css" />
</head>

More Web Design / HTML Q&A

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. How do you link an external style sheet?

©2008 About.com, a part of The New York Times Company.

All rights reserved.