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

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
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/

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