Internal CSS
<!DOCTYPE html>
<html>
<head>
<title>Using inline CSS</title>
<!-- This is the inline css: -->
<style type='text/css'>
.someColor { color:#ff7700;}
.someFont { font-family:Courier;}
</style>
<!-- -->
</head>
<body>
<div class='someColor'>This div uses the «inline» style <i>someColor</i></div>
<div class='someFont' >This div uses the «inline» style <i>someFont </i></div>
<div><a href='use_external_css.html'>Use extarnal css</a>
</body>
</html>
External CSS
A HTML document that references an external stylesheet file:
<!DOCTYPE html>
<html>
<head>
<title>How to use extrnal CSS</title>
<!-- This is the LINK to the external css -->
<link rel="stylesheet" type="text/css" href="external.css">
<!-- -->
</head>
<body>
<div class='someColor'>This div uses the «external» style <i>someColor</i></div>
<div class='someFont' >This div uses the «external» style <i>someFont </i></div>
<div><a href='use_inline_css.html'>Use inline css</a>
</body>
</html>
In this example, the referenced stylesheet file is rather simple:
.someColor { color:#ff7700;}
.someFont { font-family:Courier;}
TODO
It seems possible to provide alternative stylesheets that the user can choose from using the View->Page Style menu (at least in Firefox):
<link href="default.css" rel="stylesheet" title="Default" >
<link href="big-letters.css" rel="alternate stylesheet" title="Big Letters">
<link href="contrast.css" rel="alternate stylesheet" title="Contrast" >