{"id":167497,"date":"2023-09-14T18:14:55","date_gmt":"2023-09-14T10:14:55","guid":{"rendered":"http:\/\/www.idc.net\/help\/?p=167497"},"modified":"2023-09-14T18:14:55","modified_gmt":"2023-09-14T10:14:55","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91%e5%8e%9f%e5%88%9b%e6%95%99%e7%a8%8b%ef%bc%9aweb-%e5%93%81%e8%b4%a8-%e9%87%8d%e8%a6%81%e7%9a%84-html-%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/167497\/","title":{"rendered":"\u540e\u6d6a\u4e91\u539f\u521b\u6559\u7a0b\uff1aWeb \u54c1\u8d28 &#8211; \u91cd\u8981\u7684 HTML \u5143\u7d20"},"content":{"rendered":"<p>\u4eb2\u7231\u7684\uff0c\u8981\u63d0\u5347Web\u54c1\u8d28\uff0cDOCTYPE\u3001title\u548ch1\u90fd\u662f\u975e\u5e38\u91cd\u8981\u7684\u6807\u7b7e\u54e6~<\/p>\n<p>&lt;!DOCTYPE&gt;\u5143\u7d20\uff1a<br \/>\n\u6240\u6709\u7684HTML\u548cXHTML\u9875\u9762\u90fd\u5e94\u8be5\u4f7f\u7528&lt;!DOCTYPE&gt;\u5143\u7d20\u6765\u5b9a\u4e49\u9075\u5faa\u54ea\u4e2aHTML\u7248\u672c\u3002<\/p>\n<p>doctype\u5b9a\u4e49\u4e86\u60a8\u6b63\u5728\u4f7f\u7528\u7684HTML\u7248\u672c\uff0c\u5e76\u4e3a\u6d4f\u89c8\u5668\u63d0\u4f9b\u91cd\u8981\u7684\u4fe1\u606f\uff0c\u4ee5\u4fbf\u66f4\u5feb\u901f\u548c\u4e00\u81f4\u5730\u5448\u73b0\u60a8\u7684\u9875\u9762\u3002<\/p>\n<p>\u6587\u6863\u7c7b\u578b\u58f0\u660e\u4e5f\u4f7f\u5f97\u9a8c\u8bc1\u5de5\u5177\u53ef\u4ee5\u5bf9\u9875\u9762\u7684\u8bed\u6cd5\u8fdb\u884c\u68c0\u67e5\uff1a<\/p>\n<h3>HTML 5<\/h3>\n<pre class=\"prettyprint prettyprinted\"><span class=\"dec\">&lt;!DOCTYPE html&gt;<\/span><\/pre>\n<h3>HTML 4.01 Strict, Transitional, Frameset<\/h3>\n<pre class=\"prettyprint prettyprinted\"><span class=\"dec\">&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"&gt;<\/span>\r\n\r\n<span class=\"dec\">&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;<\/span>\r\n\r\n<span class=\"dec\">&lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Frameset\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/html4\/frameset.dtd\"&gt;<\/span><button class=\"copy-code-button\" style=\"font-family: HELVETICA, sans-serif; -webkit-font-smoothing: antialiased; font-size: 0.8em; outline: 0px; display: block; border: 1px solid #5a6272; background: none 0px 0px repeat scroll #202746; border-radius: 4px; cursor: pointer; text-align: center; text-decoration: none; text-indent: 0px; text-transform: uppercase; font-weight: 500; line-height: 1.42rem; margin: 0px; padding: 2px 2px 4px 4px; color: #f1f2f3 !important; position: absolute !important; top: 4px !important; right: 2px !important; box-sizing: inherit;\" type=\"button\" data-clipboard-text=\"&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01\/\/EN&quot;\r\n&quot;http:\/\/www.w3.org\/TR\/html4\/strict.dtd&quot;&gt;\r\n\r\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&quot;\r\n&quot;http:\/\/www.w3.org\/TR\/html4\/loose.dtd&quot;&gt;\r\n\r\n&lt;!DOCTYPE HTML PUBLIC &quot;-\/\/W3C\/\/DTD HTML 4.01 Frameset\/\/EN&quot;\r\n&quot;http:\/\/www.w3.org\/TR\/html4\/frameset.dtd&quot;&gt;\"><\/button><\/pre>\n<h3>XHTML 1.0 Strict, Transitional, Frameset<\/h3>\n<pre class=\"prettyprint prettyprinted\"><span class=\"dec\">&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd\"&gt;<\/span>\r\n\r\n<span class=\"dec\">&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;<\/span>\r\n\r\n<span class=\"dec\">&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Frameset\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-frameset.dtd\"&gt;<\/span><\/pre>\n<h3>XHTML 1.1<\/h3>\n<pre class=\"prettyprint prettyprinted\"><span class=\"dec\">&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.1\/\/EN\"\r\n\"http:\/\/www.w3.org\/TR\/xhtml11\/DTD\/xhtml11.dtd\"&gt;<\/span><\/pre>\n<p>&lt;title&gt;\u5143\u7d20\uff1a<br \/>\n&lt;title&gt;\u5143\u7d20\u662f\u6700\u91cd\u8981\u7684HTML\u5143\u7d20\u4e4b\u4e00\u3002\u5b83\u7684\u4e3b\u8981\u529f\u80fd\u662f\u63cf\u8ff0\u7f51\u9875\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u5373\u4f7f\u6807\u9898\u4e0d\u662f\u7f51\u9875\u7684\u53ef\u89c1\u90e8\u5206\uff0c\u4f46\u5b83\u5bf9\u4e8e\u63d0\u5347\u7f51\u7ad9\u54c1\u8d28\u975e\u5e38\u91cd\u8981\u3002\u56e0\u4e3a\u6807\u9898\u5728\u4ee5\u4e0b\u4f4d\u7f6e\u90fd\u662f\u53ef\u89c1\u7684\uff1a<\/p>\n<p>\u641c\u7d22\u5f15\u64ce\u5217\u8868<br \/>\n\u7a97\u53e3\u7684\u6807\u9898\u680f<br \/>\n\u7528\u6237\u7684\u4e66\u7b7e<br \/>\n\u6807\u9898\u5e94\u8be5\u5c3d\u53ef\u80fd\u77ed\uff0c\u5e76\u5177\u6709\u63cf\u8ff0\u6027\u3002<\/p>\n<p>\u5f53\u7528\u6237\u5728\u4e92\u8054\u7f51\u4e0a\u641c\u7d22\u7f51\u7ad9\u65f6\uff0c\u5927\u591a\u6570\u641c\u7d22\u5f15\u64ce\u4f1a\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u663e\u793a\u7f51\u7ad9\u7684\u6807\u9898\u3002\u8bf7\u786e\u4fdd\u6807\u9898\u4e0e\u7f51\u9875\u5185\u5bb9\u76f8\u7b26\uff0c\u8fd9\u6837\u7528\u6237\u66f4\u6709\u53ef\u80fd\u901a\u8fc7\u70b9\u51fb\u8fd9\u4e9b\u94fe\u63a5\u6765\u8bbf\u95ee\u60a8\u7684\u7f51\u7ad9\u3002<\/p>\n<p>\u5f53\u7528\u6237\u8bbf\u95ee\u60a8\u7684\u7f51\u7ad9\u65f6\uff0c\u6807\u9898\u5728\u7a97\u53e3\u7684\u6807\u9898\u680f\u4e2d\u662f\u53ef\u89c1\u7684\u3002\u8bf7\u786e\u4fdd\u6807\u9898\u53ef\u4ee5\u6e05\u695a\u5730\u63cf\u8ff0\u7f51\u7ad9\u5185\u5bb9\uff0c\u5373\u4f7f\u7a97\u53e3\u88ab\u6700\u5c0f\u5316\u3002<\/p>\n<p>\u5728\u7528\u6237\u8bbf\u95ee\u8fc7\u60a8\u7684\u7f51\u7ad9\u540e\uff0c\u7f51\u9875\u7684\u6807\u9898\u4f1a\u5b58\u50a8\u5728\u6d4f\u89c8\u5668\u7684\u5386\u53f2\u8bb0\u5f55\uff08\u7528\u6237\u751a\u81f3\u53ef\u80fd\u5c06\u7f51\u9875\u6dfb\u52a0\u5230\u6536\u85cf\u5939\u4e2d\uff09\u3002\u4e3a\u4e86\u4f7f\u60a8\u7684\u7f51\u7ad9\u5728\u4e4b\u540e\u7684\u8bbf\u95ee\u4e2d\u66f4\u6210\u529f\uff0c\u8bf7\u786e\u4fdd\u6807\u9898\u80fd\u591f\u6e05\u6670\u5730\u63cf\u8ff0\u60a8\u7684\u7f51\u7ad9\u3002<\/p>\n<p>\u597d\u7684\u6807\u9898\u793a\u4f8b\uff1a<\/p>\n<p>&lt;title&gt;HTML\u6559\u7a0b&lt;\/title&gt;<\/p>\n<p>&lt;title&gt;XML\u4ecb\u7ecd&lt;\/title&gt;<br \/>\n\u4e0d\u597d\u7684\u6807\u9898\u793a\u4f8b\uff1a<\/p>\n<p>&lt;title&gt;\u4ecb\u7ecd&lt;\/title&gt;<\/p>\n<p>&lt;title&gt;\u7b2c\u4e00\u7ae0&lt;\/title&gt;<br \/>\n\u83dc\u9e1f\u6559\u7a0b\u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u7ec4\u7ec7\u826f\u597d\u3001\u6613\u4e8e\u7406\u89e3\u7684HTML\u3001CSS\u3001JavaScript\u3001DHTML\u3001XML\u3001XHTML\u3001WAP\u3001ASP\u3001SQL\u6559\u7a0b\uff0c\u5e76\u5305\u542b\u5927\u91cf\u5b9e\u4f8b\u548c\u6e90\u4ee3\u7801\u3002<\/p>\n<p>&lt;h1&gt;\u5143\u7d20\uff1a<br \/>\n&lt;h1&gt;\u5143\u7d20\u7528\u4e8e\u63cf\u8ff0\u7f51\u9875\u4e2d\u6700\u9876\u5c42\u7684\u6807\u9898\u3002<\/p>\n<p>\u7531\u4e8e\u67d0\u4e9b\u6d4f\u89c8\u5668\u4f1a\u9ed8\u8ba4\u5c06&lt;h1&gt;\u5143\u7d20\u663e\u793a\u4e3a\u8f83\u5927\u7684\u5b57\u4f53\uff0c\u56e0\u6b64\u4e00\u4e9bWeb\u5f00\u53d1\u8005\u4f1a\u4f7f\u7528&lt;h2&gt;\u5143\u7d20\u4ee3\u66ff&lt;h1&gt;\u5143\u7d20\u6765\u663e\u793a\u9876\u5c42\u6807\u9898\u3002\u8fd9\u4e0d\u4f1a\u5bf9\u8bfb\u8005\u4ea7\u751f\u5f71\u54cd\uff0c\u4f46\u53ef\u80fd\u4f1a\u4f7f\u8bd5\u56fe\"\u7406\u89e3\u7f51\u9875\u7ed3\u6784\"\u7684\u641c\u7d22\u5f15\u64ce\u548c\u5176\u4ed6\u8f6f\u4ef6\u611f\u5230\u56f0\u60d1\u3002<\/p>\n<p>\u8bf7\u786e\u4fdd\u5c06&lt;h1&gt;\u7528\u4e8e\u6700\u9876\u5c42\u6807\u9898\uff0c\u5c06&lt;h2&gt;\u548c&lt;h3&gt;\u7528\u4e8e\u8f83\u4f4e\u7684\u5c42\u7ea7\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u6309\u7167\u4ee5\u4e0b\u6a21\u677f\u6784\u5efa\u7f51\u9875\uff1a<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<h1>This is the main heading<\/h1>\n<p>Some initial text<\/p>\n<h2>This is a level 2 heading<\/h2>\n<p>This is some text. This is some text. This is some text.<\/p>\n<h3>This is a level 3 heading<\/h3>\n<p>This is some text. This is some text. This is some text.<\/p>\n<h3>This is a level 3 heading<\/h3>\n<p>This is some text. This is some text. This is some text.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u60a8\u4e0d\u559c\u6b22\u9ed8\u8ba4\u7684\u6807\u9898\u5b57\u4f53\u5927\u5c0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u6837\u5f0f\u6216\u6837\u5f0f\u8868\u6765\u8fdb\u884c\u4fee\u6539\u54e6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eb2\u7231\u7684\uff0c\u8981\u63d0\u5347Web\u54c1\u8d28\uff0cDOCTYPE\u3001title\u548ch1\u90fd\u662f\u975e\u5e38\u91cd\u8981\u7684\u6807\u7b7e\u54e6~ &lt;!DOCTYPE&#038;g [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6989],"tags":[],"class_list":["post-167497","post","type-post","status-publish","format-standard","hentry","category-datacenter"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/167497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=167497"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/167497\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=167497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=167497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=167497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}