Difference between revisions of "External style sheet"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
Line 2: Line 2:
  
 
External style sheet files usually have the <code>.css</code> file extension.
 
External style sheet files usually have the <code>.css</code> file extension.
 +
 +
== Example ==
 +
 +
A typical example:
 +
 +
<nowiki><head>
 +
<link rel="stylesheet" type="text/css" href="sitename.css">
 +
</head></nowiki>
 +
 +
The above example is named "sitename.css", where "sitename" is the name of the website.
 +
 +
It is also common to name external style sheets after their function, for example "holiday.css" for styles which only apply during a holiday season.
  
 
== See also ==
 
== See also ==

Revision as of 11:42, 10 May 2016

An external style sheet is a text file containing CSS rules.

External style sheet files usually have the .css file extension.

Example

A typical example:

<head>
 <link rel="stylesheet" type="text/css" href="sitename.css">
</head>

The above example is named "sitename.css", where "sitename" is the name of the website.

It is also common to name external style sheets after their function, for example "holiday.css" for styles which only apply during a holiday season.

See also