Forum Moderators: open

Message Too Old, No Replies

Which Validation Code to choose?

validation code

         

PowerUp

12:55 pm on Jul 22, 2006 (gmt 0)

10+ Year Member



Should I choose xhtml 1.0 strict or xhtml 1.1? which is the latest version?

Robin_reala

1:32 pm on Jul 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you going to serve your pages as application/xhtml+xml? If the answer's 'no' or 'what' then go with HTML4.01 strict.

On the other hand, if you're willing to forgo IE compatibility then the answer is 'depends on whether you need the modularisation features of XHTML1.1'. Again, if the answer's 'no' or 'what', go with XHTML 1.0 strict.

kiwibrit

4:00 pm on Jul 22, 2006 (gmt 0)

10+ Year Member



Generally I would use 4.01 strict. However, very occasionally there is a case for javascrpt windows that pop up from a link. For non-javascript users, the link should have target="_blank". On those occasions, I use 4.01 transitional.

PowerUp

12:59 am on Jul 23, 2006 (gmt 0)

10+ Year Member



Are you going to serve your pages as application/xhtml+xml? If the answer's 'no' or 'what' then go with HTML4.01 strict.

Generally I would use 4.01 strict.

Hmm, why are you guys using html 4.01 strict? I've read somewhere on the web that xhtml is the latest and it will replace html. So why not use xhtml1.0 strict or xhtml 1.1?

encyclo

1:12 am on Jul 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is a recent thread in the HTML forum library [webmasterworld.com] about HTML 4.01 versus XHTML that you might find interesting:

  • Why most of us should NOT use XHTML [webmasterworld.com]

    If you do decide that you prefer XHTML syntax (even if you serve it as

    text/html
    ), then you should choose XHTML 1.0, the Strict version if possible. XHTML 1.1 is a cut-down version of XHTML created for Modularization (combining XHTML with other markup languages such as SVG or MathML). It should never be served as
    text/html
    , and as such will not display in Internet Explorer if used properly.
  • PowerUp

    9:52 am on Jul 23, 2006 (gmt 0)

    10+ Year Member



    There is a recent thread in the HTML forum library about HTML 4.01 versus XHTML that you might find interesting:

    # Why most of us should NOT use XHTML

    Thanks Encyclo. The thread is really enlightening. I'm going for HTML 4.01 strict.