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) Ç¥ÁØ¿¡ ÀÇÇÑ´Ù.
|
|||||||||
Availability | °øÅëÀ¸·Î Á¢¼ÓµÇ¾î »ç¿ëµÇ´Â °³Ã¼Àΰ¡(FPI : Formal Public Identifier) ȤÀº ½Ã½ºÅÛ Áö¿øÀΰ¡¸¦ ÁöÁ¤ÇÑ´Ù.
|
|||||||||
Registration | ±â±¸°¡ ±¹Á¦ Ç¥Áرⱸ(ISO : International Standardization Organization)¿¡ µî·ÏµÈ °ÍÀΰ¡¸¦ ÁöÁ¤ÇÑ´Ù.
|
|||||||||
Organization | !DOCTYPE¿¡ ÂüÁ¶µÈ DTDÀÇ »ý¼º°ú À¯Áö¿¡ Ã¥ÀÓÀÌ ÀÖ´Â ±â±¸ÀÇ À̸§À» ±× ÀÚüÀÇ ÀνÄÀÚ(OwnerID)·Î À¯ÀÏÇÏ°Ô ÀνÄÇÒ ¼ö ÀÖ´Â À̸§À¸·Î ÁöÁ¤ÇÑ´Ù.
|
|||||||||
Type | °³Ã¼°¡ ÂüÁ¶µÇ´Â °øÅë(public) ÅؽºÆ®ÀÇ Å¬¶ó½º(class)ÀÇ Çü½ÄÀ» ÁöÁ¤ÇÑ´Ù.
|
|||||||||
Label | ÂüÁ¶µÇ´Â ÅؽºÆ®ÀÇ °øÅë(public) ¼³¸íÀ» ÇÏ´Â À¯ÀÏÇÑ À̸§À» ¹ÝȯÇÑ´Ù. °øÅë ÅؽºÆ®ÀÇ ¹öÀüÀ» Æ÷ÇÔÇÒ ¼ö ÀÖ´Ù.
|
|||||||||
Definition | ¹®¼ ŸÀÔ Á¤ÀÇ(DTD)¸¦ ÁöÁ¤ÇÑ´Ù.
|
|||||||||
Language | °³Ã¼ÀÇ ¿£ÄÚµù¿¡ »ç¿ëµÇ´Â ÀÚ¿¬¾ð¾îÀÇ ¿µ¹®ÀÚ µÎ±ÛÀÚ·ÎµÈ ¾ð¾îÄڵ带 ÁöÁ¤ÇÑ´Ù. ISO 639¿¡ ÁØÇÏ¸ç ¾ð¾îÄÚµå ¸ñ·ÏÀ» ÂüÁ¶Ç϶ó.
|
|||||||||
URL | °³Ã¼°¡ ÂüÁ¶µÈ ÁÖ¼Ò¸¦ ÁöÁ¤ÇÑ´Ù. |
ÇʼöÀûÀÎ ¿ä¼ÒÀ̸ç, ÇöÀç ¹®¼¸¦ ÂüÁ¶ÇÑ´Ù.
¼±ÅÃÀûÀÎ ¿ä¼ÒÀ̸ç, ¹®¼ÀÇ °ªÀ¸·Î ¹ÝȯµÈ °³Ã¼ÀÌ´Ù.
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 | ºÎÇÕÇÔ | ºÎÇÕÇÔ |
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
IE6ÀÇ CSS º¸¿ÏÀÌ´Ù.
ÀÌ ¼±¾ðÀº (¿µ¹®)HTML3.2¿¡¼¿Í (¿µ¹®)DOM Level 1(W3C Document Object Model)¿¡ Á¤ÀǵǾú´Ù.