|
Doctype Tags
The doctype tag tells the browser what standard the page
conforms to. Until now doctypes did not have to be including
but with the creation of XHMTL 1.0, they must know be put
in. Doctype tags go above your head tag. There are 3 types
of doctype tags. Strict, transitional and frameset.
Strict
Strict is the hardest standard to compy with. If you add a
strict doctype to your document, you cannot use many tags
such as <font>. Very few websites use strict doctypes.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Transitional
This is the most commonly used doctype as it allows you to
keep some of the old tags but still lets you move on to XHTML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Frameset
This is for frameset pages (well pretty obvious really).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|