Re: DOCTYPE



On Thu, 28 Feb 2008 13:03:45 +0100, Jonas Werres <jonas@xxxxxxxxxxx> wrote:

HTML 4.01 Strict(!) is still the document type of choice in most cases.

NACK. Since HTML incontrast to XHTML allows some very strange things, XHTML is much easier to debug using a validator. Indeed, most of the stuff (except some specialties like checked="checked", <br /> ...) sane people are using in HTML is already XHTML.
Defining it als XHTML has the advantage, that constructions that are commonly mistakes but are valid will be found by the validator.

Writing HTML strict is at least as easy as XHTML, and easily validated. Some major browser whose name shall not be mentioned still doesn't support real XHTML, untill then there's no good reason to use XHTML. The XHTML hype is past us, most serious HTML developers/designers are back to HTML strict as using XHTML little to no advantages due to browser's implementation. It's been shelved as 'could be usefull in the future, certainly not now'. Even the w3c have kind of given up on it, and focus more on HTML5 then XHTML2.

I'd be curious as to what 'constructions that are commonly mistakes but are valid' are more easily found in XHTML then HTML, care to give an example?

Offcourse, I'd love to use SVG or MathML in pages. Support is sadly lacking.
--
Rik Wasmus
.



Relevant Pages

  • Re: validating HTML for dynamically created HTML
    ... I've tried W3C's validator and others ... This seems really important with AJAX changing the HTML ... HTML document the serializer object may provide XHTML code, ... the context where it is about to be inserted, *before* insertion. ...
    (comp.lang.javascript)
  • Re: cdata and javascript
    ... Consider learning what a validator is before trying to fool it. ... XHTML is a cleaner code with features like self-closing tags. ... The XHTML is almost always served and interpreted as HTML with the ... However then the code is parsed as xml. ...
    (alt.html)
  • Re: xhtml: adding ELEMENT to dtd
    ... validator to pass - but, when viewing pages, FF and IE display the ... For local files, use the .xml or .xhtml file extension, not the .html file extension. ... Even some geeks of comp.infosystems.www.authoring.html admit that using HTML 4.01 strict is a better idea. ... Storing new element type declarations in the external declaration subset is better for compatibility with IE. ...
    (comp.infosystems.www.authoring.html)
  • Re: cdata and javascript
    ... Consider learning what a validator is before trying to fool it. ... XHTML is a cleaner code with features like self-closing tags. ... The XHTML is almost always served and interpreted as HTML with the ... Although this often works for IE browsers, ...
    (alt.html)
  • Re: XHTML vs HTML
    ... If you can't raionally argue why XHTML should or should not be persued and ... we're talking about XML here. ... the information that HTML doesn't cut it anymore is nuts. ... into virtually *any* other data format. ...
    (microsoft.public.frontpage.programming)