I am trying to read xhtml spec and use one of its examples about css2 in
xhtml.
The example on the PDF paper with internal styles defenition works just
fine. When I try to use an external file with css defs it just does not work
unless I use <link rel...> in the <header>. However, this is not how the
xhtml examples link style sheets and I would like to know the reason why it
is not working for me.
Here is the html file:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="styles.css" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" href="styles.css" type="text/css" />
<title>Home page.</title>
</head>
<body>
<hehe>this needs to turn green before I go home</hehe>
</body>
</html>
and here is the CSS file:
hehe {
color: red;
font-family: monospace;
font-weight: normal;
}
What is wrong, can someone tell me please?