xHTML Validation

Soldato
Joined
18 Feb 2003
Posts
5,817
Location
Chester
Right, i've tried every way i can find to get a valid xhtml style sheet link.

i've tried -
Code:
<style href="show.css"  rel="stylesheet" type="text/css">
<link href="show.css" rel="stylesheet" type="text/css">

and i think there was another.
so far from the W3 validator it seems that xhtml doesn't like the href with the link and style tags but i can't seem to find anything to say what else to use.

been using the following site for reference -
http://www.w3.org/TR/REC-html40/present/styles.html#h-14.3
 
You are not ending the tag.

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

Should be:

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

(Notice the slash on the end.)
 
ah yeah i forgot that in the original post...but i was ending the tags with /> and </style>

i've ended them okay...it just doesn't take them :confused:
 
In your CSS, you have

font: "Trebuchet MS"

You should do this:

font-family : Trebuchet MS, Arial, Verdana, sans-serif ;

That way, if a user doesn't have Trebuchet, it'll use Arial, else Verdana, else sans-serif type fonts.

That should clear up your validation problems..
 
Back
Top Bottom