Fog Creek Software
Discussion Board




Knowledge Base
Documentation
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 http://www.w3c.org. Something like:

http://validator.w3.org/check?uri=http://www.die-steinhaeuser.de/index.html

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 (www.johntopley.com)
Thursday, January 22, 2004

Thanks!

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