DOCTYPE
The Doctype (short for Document Type) is what tells the Internet browsers what type of page it is trying to load.
There are several flavors of HTML and XHTML. The two that are highly recommended to use are HTML 4.01 Strict or XHTML 1.0 Strict. Their doctypes are as follows:
Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The other flavors are HTML 4.01 Transitional, XHTML 1.0 Transitional, and XHTML 1.1. The two transitional flavors were meant to be used by old websites trying to convert to the new standards, and as such, are not meant for any new websites. XHTML 1.1 is a restructuring of XHTML 1.0 which never took off and has very little support, both from developers and from Internet browsers.




