Forum Moderators: open

Message Too Old, No Replies

Which standard to choose? (site development)

xhtml or html what to choose now and for future

         

masionas

1:36 pm on Mar 27, 2007 (gmt 0)

10+ Year Member



hi Guys,

I am at a start point of creating my new website and this time I do want to go with the most current trends. That said, as a content markup and presentation should I go with XHTML these days instead of just HTML 4.0? And if it is XHTM then which version 1.0 or 2.0? I am not concerned much about portable devices compatibility right now but all the major browsers including the ones on MAC should display the content same way. Please, I would be glad to hear the thoughts of community on this subject. Thanks!

mattur

2:39 pm on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Unless you need* to publish XHTML pages, use HTML4.01 Strict or Transitional.

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

* since you're asking what to use, you don't need to :)

Fotiman

2:44 pm on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I second that. HTML 4.01 Strict is ideal for most situations.

Here's that DOCTYPE:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

[edited by: Fotiman at 2:47 pm (utc) on Mar. 27, 2007]

encyclo

3:10 pm on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The HTML versus XHTML debate is one thing, but the most important part of the decision is to ensure that you are using standards-compliance mode in modern browsers. This rendering mode ensures that your site pages will render according to the established standards.

Standards-compliance mode is triggered by an appropriate doctype. You might find this short guide useful:

  • FAQ: Choosing the best doctype for your site [webmasterworld.com]
  • masionas

    3:14 pm on Mar 27, 2007 (gmt 0)

    10+ Year Member



    Thank you for the input colleagues. I am just excited about the thread mentioned by mattur. Reading it now...