hwg-xml archives | Jul 2004 | new search | results | previous | next |
Re: xhtml head infoby "Norman E. Carpenter II" <theacademe(at)yahoo.com> |
|
This is from the w3 website XHTML section at http://www.w3.org/TR/xhtml1/#strict "An XML declaration is not required in all XML documents;" The samples there include: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Virtual Library</title> </head> Regarding the meta tag, see http://www.w3.org/TR/xhtml1/#C_9 "a document that wants to set its character encoding explicitly must include both the XML declaration an encoding declaration and a meta http-equiv statement" -- Norman Carpenter --- Maren Child <maren(at)wordsworth.com.au> wrote: > Is this correct for the head section of an xhtml document? > > <?xml version="1.0" encoding="iso-8859-1"?> > <!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"> > <head> > <title>Untitled Document</title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > </head> > > I've read somewhere that some browsers can't cope with the xml > version > statement. I'm working on annual reports for government departments > and they > say they still have a significant number of users on netscape 4.7, > ie5 and > ie5.5, and even ie3. We use a lot of special characters eg � > � > � etc. and I guess the iso-8859-1 is there to make sure they > will be > displayed properly? > > Thanks > Maren > > > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail
HWG hwg-xml mailing list archives, maintained by Webmasters