In article <[EMAIL PROTECTED]>,
Brian Howlett <[EMAIL PROTECTED]> wrote:
> On 27 Apr, [EMAIL PROTECTED] wrote:
> >> On 27 Apr, [EMAIL PROTECTED] wrote:
> [snip]
> > Thanks, i'm using the XHTML 1.0 Transitional DOCTYPE.
> > Are you using a 4.01 DOCTYPE?
> Yes I am - the only other thing is to make sure the stylesheet is in
> the same level directory/folder as the HTML file, otherwise you will
> need to expand the "href" to point to the correct folder - mine is in
> a folder called "stuff", so the link I posted before actually reads
> <LINK rel="stylesheet" type="text/css" href="stuff/style.css">
May I recommend, however, that you produce new documents using the
full xhtml/xml syntax - a little future proofing is never a bad thing.
Any element which has no content needs what is formally called an 'empty
tag'. Thus, for example the hr element tag should be written as <hr />!
This is a sort of short-hand for "<hr></hr>" - which you could use - but
don't blame me if MSIE objects!
NOTE that all element names are in "lower case" - upper case names are not
valid! The space preceding the solidus is NOT part of the syntax, but some
versions of MSIE will 'barf' if the space isn't there.
Producing the above link element therefore should be something like -
<link rel="stylesheet" type="text/css" href="xxx/yyy.css" />
Most valid elements in the header require this kind of empty tag - elements
such as img, hr and others in the body also, of course, have empty tags.
You can go a step further in future-proofing by avoiding elements likely to
become obsolescent in xhtml full in future - br, b, i, font - and a few
others. There are several ways of achieving the same effects using other
elements and/or style sheets.
Keith
--
Inspired!