W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2003

Re: [Tidy-dev] Re: Valid HTML / XHTML

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Sat, 13 Dec 2003 20:26:39 CET
To: html-tidy@w3.org, Thomas.Adams@bbdo-interone.de
Cc: tidy-develop@lists.sourceforge.net
Message-Id: <2003121373599.XMNU0D59.lamail@atmedia.net>

At 9:22 AM +0100 12/11/03, Thomas Adams wrote:
>Dear Terry, i recently have used tidy (Windows version from 12th July
>2003) to validatemy HTML. Given is the DOCTYPE XHTML 1.0 Transitional in
>my code, tidy validatesits fine (it means succesfully).

Dear Thomas, when you run tidy against the file where you have changed the 
doctype, do you get any informational or warning messages?  Did you submit
the output of running tidy again to the W3C validator, or the input document
in which you had manually changed the doctype?

HTML 4.01 Transitional and XHTML 1.0 Transitional are very similar, except that
HTML is parsed according to SGML parsing rules whereas XHTML is parsed 
according to XML parsing rules.

Elements with empty context models must not have end tags in HTML, but have end
tags in XML, so

HTML 4.01:  <br>
XHTML 1.0:  <br></br> or, for better compatibility with HTML browsers, <br />

>My question is, is my code still valid HTML 4.01 or do I
>have to do some rework on my html-code to validate at W3C as well.

Unless you need to use HTML 4.01 Transitional, I would recommend that you go 
with XHTML 1.0 Transitional instead, which is recognized by all current 
browsers, and when following the recommendations for backwards compatibility 
outlined in the specification, also by older browsers.

Klaus Johannes Rusch
Received on Saturday, 13 December 2003 15:20:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC