View Single Post
  #2 (permalink)  
Old Nov 20th, 2007, 20:37
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,119
Blog Entries: 2
Thanks: 5
Thanked 35 Times in 32 Posts
Re: Validation... why?

Essentially, a a correct doctype will ensure a browser to render in standards mode. Without a doctype (or with an invalid one) browsers will resort to quirks mode, which can lead to spurious and unpredictable rendering of your site

Doctype's are also required for valid markup. Read more at A List Apart

Quoting on the topic of xmlns

Quote:
xmlns stands for "XML namespace". A namespace is a unique identifier for a variant of XML. It is a method to avoid conflicts with different XML variants which use the same element names.

There's a bit of discussion surrounding this, as xmlns accompanies XHTML, not HTML. XHTML was a new introduction to help integrate HTML and XML. It was not a 'new' HTML as such, and many argue XHTML should only be used for the purpose it was built for, and not simply served as 'text/html.' Read the discussion

An example of an xmlns declaration:
HTML: Select all
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Last edited by Aso; Nov 20th, 2007 at 20:41.
Reply With Quote