HTML ¾î´À ±âÁØ¿¡ ¸Â´Â ¹®¼­Àΰ¡¸¦ ³ªÅ¸³»´Â ¹®¼­ ŸÀÔ Á¤ÀÇ(DTD: Document Type Definition)¸¦ ÁöÁ¤ÇÑ´Ù.
¹®¹ý <!DOCTYPE TopElement  Availability "Registration// Organization// Type Label// Definition Language" "URL">
¿¹Á¦
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
ÀÌ ¹®¼­
<!DOCTYPE html public "-//w3c//dtd html 4//en">
Script ÇöÀç ¹®¼­(document)¿¡ ÁöÁ¤µÈ DTD¸¦ ¹ÝȯÇÑ´Ù.

¹®¹ý [oVal=]document.doctype;
ÀÌ ¹®¼­ <SCRIPT>document.write(document.doctype)</SCRIPT> °á°ú : (default)

°¡´ÉÇÑ °ª

TopElement ÃÖ»óÀ§ ¿¤·¹¸àÆ®ÀÇ ¹®¼­ ŸÀÔ Á¤ÀǸ¦ ÁöÁ¤ÇÑ´Ù.
ÀÌ´Â ¼±¾ðµÇ´Â ¹®¼­ÀÇ SGML(Standard Generalized Markup Language) Ç¥ÁØ¿¡ ÀÇÇÑ´Ù.
HTML µðÆúÆ®ÀÌ°í HTML ¹®¼­¸¦ ³ªÅ¸³½´Ù.
Availability °øÅëÀ¸·Î Á¢¼ÓµÇ¾î »ç¿ëµÇ´Â °³Ã¼Àΰ¡(FPI : Formal Public Identifier) ȤÀº ½Ã½ºÅÛ Áö¿øÀΰ¡¸¦ ÁöÁ¤ÇÑ´Ù.
PUBLIC µðÆúÆ®ÀÌ°í °øÅëÀ¸·Î Á¢¼ÓµÇ¾î »ç¿ëµÇ´Â °³Ã¼ÀÌ´Ù.
SYSTEM Áö¿ª È­ÀÏÀ̳ª ÁÖ¼Ò(URL)µî ½Ã½ºÅÛ ÀÚ¿øÀÌ´Ù.
Registration ±â±¸°¡ ±¹Á¦ Ç¥Áرⱸ(ISO : International Standardization Organization)¿¡ µî·ÏµÈ °ÍÀΰ¡¸¦ ÁöÁ¤ÇÑ´Ù.
+ µðÆúÆ®ÀÌ°í ±â±¸°¡ µî·ÏµÈ À̸§ÀÌ´Ù.
- ±â±¸°¡ µî·ÏµÈ À̸§ÀÌ ¾Æ´Ï´Ù. IETF(Internet Engineering Task Force)¿Í W3C(World Wide Web Consortium)´Â ISO¿¡ µî·ÏµÈ ±â±¸°¡ ¾Æ´Ï´Ù.
Organization !DOCTYPE¿¡ ÂüÁ¶µÈ DTDÀÇ »ý¼º°ú À¯Áö¿¡ Ã¥ÀÓÀÌ ÀÖ´Â ±â±¸ÀÇ À̸§À» ±× ÀÚüÀÇ ÀνÄÀÚ(OwnerID)·Î À¯ÀÏÇÏ°Ô ÀνÄÇÒ ¼ö ÀÖ´Â À̸§À¸·Î ÁöÁ¤ÇÑ´Ù.
IETF Internet Engineering Task Force ÀÌ´Ù.
W3C World Wide Web Consortium ÀÌ´Ù.
Type °³Ã¼°¡ ÂüÁ¶µÇ´Â °øÅë(public) ÅؽºÆ®ÀÇ Å¬¶ó½º(class)ÀÇ Çü½ÄÀ» ÁöÁ¤ÇÑ´Ù.
DTD µðÆúÆ®ÀÌ°í DTDÀÌ´Ù.
Label ÂüÁ¶µÇ´Â ÅؽºÆ®ÀÇ °øÅë(public) ¼³¸íÀ» ÇÏ´Â À¯ÀÏÇÑ À̸§À» ¹ÝȯÇÑ´Ù.
°øÅë ÅؽºÆ®ÀÇ ¹öÀüÀ» Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù.
HTML µðÆúÆ®ÀÌ°í HTML °³Ã¼ÀÌ´Ù.
Definition ¹®¼­ ŸÀÔ Á¤ÀÇ(DTD)¸¦ ÁöÁ¤ÇÑ´Ù.
Frameset ÇÁ·¹ÀÓ¼¼Æ® DTD frameSet ¹®¼­µé.
Strict ¾ö°Ý DTD W3CÀÇ ±Ô°Ý¿¡ ¸Â´Â ¿¤·¹¸àÆ®µé°ú ¾ÖÆ®¸®ºäÆ®µé¿¡¸¸ Àû¿ëÇÑ´Ù.
Transitional º¯ÀÌ DTD frameSet ¿¤·¹¸àÆ®¸¦ Á¦¿ÜÇÑ ¸ðµç °ÍÀ» Æ÷ÇÔÇÑ´Ù.
Language °³Ã¼ÀÇ ¿£ÄÚµù¿¡ »ç¿ëµÇ´Â ÀÚ¿¬¾ð¾îÀÇ ¿µ¹®ÀÚ µÎ±ÛÀÚ·ÎµÈ ¾ð¾îÄڵ带 ÁöÁ¤ÇÑ´Ù.
ISO 639¿¡ ÁØÇÏ¸ç ¾ð¾îÄÚµå ¸ñ·ÏÀ» ÂüÁ¶Ç϶ó.
en µðÆúÆ®ÀÌ°í ¿µ¾îÀÌ´Ù.
ko ÇÑ±Û À©µµ¿ìÀÇ µðÆúÆ®ÀÌ°í ÇѱÛÀÌ´Ù.
URL °³Ã¼°¡ ÂüÁ¶µÈ ÁÖ¼Ò¸¦ ÁöÁ¤ÇÑ´Ù.
Àμö
document : (¹®¼­)

ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ÇöÀç ¹®¼­¸¦ ÂüÁ¶ÇÑ´Ù.

oVal : (°³Ã¼)

¼±ÅÃÀûÀÎ ¿ä¼ÒÀ̸ç, ¹®¼­ÀÇ °ªÀ¸·Î ¹ÝȯµÈ °³Ã¼ÀÌ´Ù.

null µðÆúÆ®ÀÌ¸ç ¹®¼­ÀÇ °ªÀ» ¹ÝȯÇÑ´Ù.
¹Ýȯ°ª

ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀ̸ç, µðÆúÆ®°ªÀº HTML ¹®¼­¿¡¼­ doctype ¼Ó¼ºÀ¸·Î (¿µ¹®)DOM Level 1(W3C Document Object Model)¿¡ ÀÇ°ÅÇÏ¿© nullÀ» ¹ÝȯÇÑ´Ù.

Ư±â

ÀÌ ¼±¾ðÀº ¹®¼­ÀÇ ½ÃÀۺκп¡ HTML ű׺¸´Ù ¸ÕÀú µÇ¾î¾ßÇÑ´Ù.

!DOCTYPE ¿¤·¹¸àÆ®´Â Á¾·áű׸¦ ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â´Ù.

ÀÌ ¿¤·¹¸àÆ®´Â HTML¿¡¼­ IE3.0ºÎÅÍ Àû¿ëµÇ¾ú´Ù.

IE6ºÎÅÍ ¾ö°Ý DTD Àû¿ëÀ» À§ÇÑ ¼³Á¤À» ½ºÀ§ÄªÇÒ ¼ö ÀÖ´Ù.

Ç¥ÁØ ºÎÇÕ¼º ¿©ºÎ

DOCTYPE URL
ÀÖÀ» ¶§ ¾øÀ» ¶§
DOCTYPE ¾ø½¿ ºÎÇÕÇÏÁö ¾Ê¹Ê ºÎÇÕÇÏÁö ¾Ê¹Ê
HTML (¹öÀü ¾ø½¿) ºÎÇÕÇÏÁö ¾Ê¹Ê ºÎÇÕÇÏÁö ¾Ê¹Ê
HTML 2.0 ºÎÇÕÇÏÁö ¾Ê¹Ê ºÎÇÕÇÏÁö ¾Ê¹Ê
HTML 3.0 ºÎÇÕÇÏÁö ¾Ê¹Ê ºÎÇÕÇÏÁö ¾Ê¹Ê
HTML 4.0 ºÎÇÕÇÔ ºÎÇÕÇÔ
HTML 4.0 Frameset ºÎÇÕÇÔ ºÎÇÕÇÏÁö ¾Ê¹Ê
HTML 4.0 Transitional ºÎÇÕÇÔ ºÎÇÕÇÏÁö ¾Ê¹Ê
HTML 4.0 Strict ºÎÇÕÇÔ ºÎÇÕÇÔ
XHTML ºÎÇÕÇÔ ºÎÇÕÇÔ
XML ºÎÇÕÇÔ ºÎÇÕÇÔ
ÀνÄÇÒ¼ö ¾ø´Â DOCTYPE ºÎÇÕÇÔ ºÎÇÕÇÔ

ÁÖÀÇ: Ç¥ÁØ¿¡ ºÎÇÕÇÏ´Â ¸ðµå¿¡¼­ ´Ù¸¥ ºê¶ó¿ìÀú¿¡ µ¿ÀÏÇÏ°Ô Àû¿ëµÇ´Â °ÍÀÎÁö´Â È®½ÇÇÏÁö ¾Ê´Ù.
¶ÇÇÑ Ç¥ÁØ¿¡ ºÎÇÕÇÏ´Â ¸ðµå·Î ½ºÀ§ÄªµÇ¾îµµ ÇâÈÄ ºê¶ó¿ìÀú ¹öÀü¿¡¼­ ¹®¼­¸¦ Ç¥ÇöÇÏ´Â ¹æ½ÄÀÌ ´Þ¶óÁú ¼ö ÀÖ´Ù.
µû¶ó¼­ CD¸¦ ±Áµçµî °íÁ¤Àû ¼º°ÝÀ» °®´Â ³»¿ë¿¡¼­´Â »ç¿ëÇÏÁö ¸»¾Æ¾ß ÇÑ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
ÂüÁ¶
doctype

IE6ÀÇ CSS º¸¿ÏÀÌ´Ù.

ÀÌ ¼±¾ðÀº (¿µ¹®)HTML3.2¿¡¼­¿Í (¿µ¹®)DOM Level 1(W3C Document Object Model)¿¡ Á¤ÀǵǾú´Ù.