Skip to Content


Stylegala news / November 2005 / Choosing HTML or XHTML

Choosing HTML or XHTML

Robert Nyman's post discusses some of the differences between HTML and XHTML. The information may help you make an informed decision next time you're in a position to choose between using HTML and XHTML. I agree with Robert here: using a Strict doctype is far more important than whether you use HTML or XHTML. Strict doctypes will help you separate content and structure from presentation, and will trigger full standards mode in web browsers that support doctype switching. So, what do I use? It depends. 456 Berea Street is currently HTML 4.01 Strict. I used to use content negotiation to send XHTML 1.0 Strict as application/xhtml+xml to browsers that support it, and HTML 4.01 Strict as text/html to others. For various reasons, all browsers now get the latter.

permanent link 04 nov at 17:52 by Roger

There are 3 guest comments so far.

commentat 05:48 on 21 September 2007, Ruby wrote:

really useful

commentat 04:23 on 31 December 2007, Logo Designers wrote:

XHTML is the future

commentat 13:01 on 17 June 2008, Internet Web Design wrote:

XHTML hasnt caught on yet

Add a comment:

(required, non-public)

  |  Chars left: 1000

Keep the comment relevant, constructive and be polite.
A valid email address or URL to your site must be provided, or the comment might get deleted. Content seemed inappropriate or offensive may be edited and/or deleted. Avoid explicit language and words such as "sucks" and "ripoff". For more in-depth discussions use our forum. Email addresses are never displayed. Line breaks and paragraphs are automatically converted - no need to use <p> or <br/>. Quotes & apostrophes are automatically converted to smart punctuation. Be careful when copying and pasting portions of entries or other comments. The following inline HTML elements may be used: <strong><em><pre><q><blockquote><code>. All other code will get removed before posting. Don't forget to close your tags.


Search the archive

Stylegala news archive

Public news archive

News contributors


Features

Stylegala BookStore
The Stylegala BookStore has a massive archive of great books for you as a professional..
Bullet madness
Bullet madness is a list of 200 bullets, arrows and icons uploaded by our users.
CSS Reference
An alphabetical list over the most common CSS1 and CSS2 syntax and properties.

Sponsors

Logo design for $149

Advertise here