www.north-square.com          
+44 (0) 845 47 48 456     info@north-square.com

Skip navigation and jump to content
Telephone: +44 (0) 845 47 48 456 --- Email: info@north-square.com
Client News
Tandridge Council

North Square completes an evaluation of Tandridge Borough Council. We have now worked for over 50 local authorities in the United Kingdom. View major clients, testimonials, and request references in our Client Portfolio.
(January 2010)

Newsletter

North Square's website best practice newsletter provides updates on our latest research articles and recommended tools. We encourage you to look at our sample newsletter.

XHTML and HTML Doctypes:
Which should I use?

<< Back to Resources Index

19 April 2009

Definition of Doctypes

A Document Type Definition (DTD or Doctype) is a statement at the beginning of a website page that tells browsers the version of XHTML or HTML being used. One of the early decisions facing a programmer is: which Doctype should I use? At present, programmers are most likely to choose between the following DTDs:

Structural and Presentation Layers

The two key components of a web page are the structural layer and presentation layer. In HTML 3, for example, it was acceptable to mix the two together. HTML 4, which was the final version of HTML (superseded by XHTML), and XHTML 1.1 were published with optional Transitional formats.

Transitional formats are, as the name suggests, intended for programmers to transition their HTML 3 or 4 web pages to Strict format. XHTML 1.1 is the latest specification and does not give programmers the choice between Transition or Strict (it is Strict) and will soon be superseded by XHTML 2.0

Why use Transitional?

We are still surprised at North Square to see so many new websites being created in a Transitional format. Like it or not, the W3C is the key player in (X)HTML decision-making and it has been clear for many years that separation of structural and presentation layers is inevitable.

When we ask programmers why they have used a Transitional DTD for a new website, they often say something like: "It's a valid Doctype - what's the problem?". HTML 3 is a valid specification, but who would consider using it for a new website?

Request Demonstration
North Square Interactive produces Website Evaluation reports, Usability Testing, Website Competitor Analysis, Accessibility Audits, Browser Testing, and more. We can provide a free demonstration of our services and examples of earlier work.

Our Recommendation: XHTML 1.1

There is no need to create your new pages in a Transitional format - at some point your pages will need converting to a Strict format. Creating new pages with a mix of structural and presentation elements will mean more work later on.

If you are building a new website or creating new pages, we highly recommend programming in XHTML 1.1. Converting to XHTML 2.0 and beyond from 1.1 should be relatively straight forward, thus saving you time in the long-run.

by David Miller
Website Analyst,
North Square Interactive


North Square's Services

North Square Interactive is an online consultancy that delivers cost effective, best practice, Website Evaluation reports, Usability Testing, Website Competitor Analysis, Accessibility Audits, Browser Testing, and more. For further information about all of our services, please visit our Online Consultancy Index.

<< Back to Resources Index