Apr 09 2007

Website Marketing Tips #3 – DOCTYPE (DTD)

Category: Optimizationadmin @ 7:04 pm

It is important to add a Document Type Definition (DTD) otherwise known as a DOCTYPE for every web page. You would be amazed to see how many web sites do not even use them. Aside from making your website W3C compliant, it helps the browser to interpret the web page correctly. Add DOCTYPE at the top of every page.

These are some of the different types of DOCTYPE that can be used for your web page. 

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <?xml version=”1.0″ encoding=”ISO-8859-1″?>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>

Here are some links for further information on DOCTYPE: http://www.w3.org/QA/2002/04/valid-dtd-list.html http://www.webmasterworld.com/forum88/4677.htm http://www.w3.org/TR/xhtml1/#a_dtd_XHTML-1.0-Transitional

-=Smitty=-