Web Standards and Accessibility

A Lancaster University Resource for Students and Staff Lancaster University home page

Doctype Statements

Doctype statements help browsers to intepret your web page correctly. You need to choose the correct doctype according to the standard that you want to achieve. A doctype statement should be present at the top of every page in your website.


HTML Pages

You can choose the standard to which your web pages will comply. Ideally pages should comply to "Strict" (the highest standard) but this is not always possible.

You should avoid working with "Framesets" as these cause difficulties for disabled users.

Occasional webdevelopers should work to "Transitional" because it allows you to use a greater range of tags and so is easier to achieve this standard.

Advanced users should work to "Strict" by using HTML for layout of elements and creating the design features of the site using CSS.

The doctype statements below are for HTML 4.01 - the most recent version of HTML. Choose the appropriate doctype for your website and include the code on the top of every page.




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"



Please use the link to the W3C website below:

A complete list of doctype statements can be found on the W3C website at: