[thelist] doctype mess up
Mark Groen
mark at markgroen.com
Fri Mar 28 16:19:13 CST 2003
On March 28, 2003 at 13:57, Tom Dell'Aringa wrote:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> and use XHTML coding practices. (Which he keeps calling 'xml' 1.0
> syntax'). Why - I have no idea.
Unless you are going to actually need your site to run as an xml document, then
this is not nessasary but it does make you look cutting edge. Not much to
change over, you have to remember practically every element is lower case and
things like the trailing slash for unclosed tags like <br /> and <img /> <meta />,
etc. to get it to validate. Your header info example is incomplete, it should be like
this to validate:
<?xml version="1.0" encoding="UTF-8" /?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Change that, a few search and replaces for the trailing slash thingee and lower
case elements, validate, and Bob's your Uncle.
Kind of a waste of time if you aren't going to use it for actual xml use, especially
if everything else on the site already is valid xhtml transitional IMHO.
Regards,
Mark Groen
MG Web Services
Web Site Hosting and Development
www.markgroen.com
mark at markgroen.com
604-780-6917
More information about the thelist
mailing list