Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Publishing pages in W3C standard

Hi all!

Evaluating the right DTD document-type declaration to fuse for the head of all my HTML files, I validated my page with services offered by Something like:

It was interesting to see, that a best fit (lowest number of errors found) was found by using 'HTML 4.01 transitional'.

The only error found was caused by CD itself; isn't it funny sometimes...

Below are the results of attempting to parse this document with an SGML parser.

Line 4, column 60: character data is not allowed here
  <meta name="generator" content="Fog Creek CityDesk 2.0.19" />

The parser critized the last two characters of the line above.

My question: Is there anything one can do to be completely valid in 'HTML 4.01 transitional'? Or is CD ought to publish another standard like 'XHTML 1.0 transitional'?

Thanks for help and back-ground information!

CU, Steffen

Dr. Steffen Steinhäuser
Thursday, January 22, 2004

CityDesk 2.0 does its best to conform to XHTML 1.0 Transitional.

John Topley (
Thursday, January 22, 2004


Than I will have to change my meta-tags in the head of HTML, because they will mainly cause trouble in the validation.

CU, Steffen

Dr. Steffen Steinhäuser
Thursday, January 22, 2004

When v2 first came out I noticed the end slash in the metatag name was causing the validation error you point out:

  <meta name="generator" content="Fog Creek CityDesk 2.0.19" />

If this is your ownly validation error, you can be happy anyway, since this error causes no problem with the browsers.  If you like, you can run a  (tidy?, perl?) script after publishing that will edit this out.

joel goldstick
Thursday, January 22, 2004

Yeah, it's one of the few areas where XHTML is not backwards compatible with the HTML spec.  META and LINK tags in the HEAD section cannot have closing tags or end in /> in HTML, but they *must* in XHTML.

Richard P
Thursday, January 22, 2004

*  Recent Topics

*  Fog Creek Home