Linking to external CSS files

A key benefit of CSS is that you can create a style sheet for use not just within a single page, but throughout an entire web-project. This external style sheet can be applied so many pages as you desired, without having to duplicate the code. So if you'd like to change the design of all your pages, you just need to change one file, instead of making changes to all your pages of th web-project.

To set up an external CSS file:

  1. Create a new file by means of software allowing you to save it as a text file.
  2. Type in your clear CSS codes.
  3. Save the document as filename.css

Link to your external file:

To use external file CSS file on every page that you want affected by CSS, insert the following code in the head:

      <HEAD>
        <LINK REL=stylesheet TYPE="text/css" HREF="filename.css">
      </HEAD>
    



This website is hosted for free by Freewebs.com - free website. Get your own Free Website now!