In article <d9b7d4964f.Brian(a)bhowlett.adsl24.co.uk>,
Brian Howlett <brian.groups(a)brianhowlett.me.uk> wrote:
On 27 Apr, mike.carter(a)zurenet.co.uk wrote:
On 27 Apr, mike.carter(a)zurenet.co.uk
> 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"
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 -
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.