[Phpwm] new ste

David Goodwin david at codepoets.co.uk
Wed Feb 14 22:11:03 GMT 2007


> To make the validator work all you need to do is replace your previous dtd
> and html opening tag with (note the dtd and xml definition are the first
> thing on the page):
> 
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
> 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
> <html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>

I've not noticed the <?xml thing all that often; is it often not used?
Or do few people bother reaching that standard?

(<? also has that annoying property of being the equivalent of <?php on
some stupid servers, and is quite annoying when you find it in 3rd party
code).

David.
-- 
David Goodwin 

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]



More information about the Phpwm mailing list