• <legend id='3hANu'><style id='3hANu'><dir id='3hANu'><q id='3hANu'></q></dir></style></legend>
      <bdo id='3hANu'></bdo><ul id='3hANu'></ul>

    1. <i id='3hANu'><tr id='3hANu'><dt id='3hANu'><q id='3hANu'><span id='3hANu'><b id='3hANu'><form id='3hANu'><ins id='3hANu'></ins><ul id='3hANu'></ul><sub id='3hANu'></sub></form><legend id='3hANu'></legend><bdo id='3hANu'><pre id='3hANu'><center id='3hANu'></center></pre></bdo></b><th id='3hANu'></th></span></q></dt></tr></i><div id='3hANu'><tfoot id='3hANu'></tfoot><dl id='3hANu'><fieldset id='3hANu'></fieldset></dl></div>

      <small id='3hANu'></small><noframes id='3hANu'>

        <tfoot id='3hANu'></tfoot>

        为什么我们使用 &lt;html&gt;标记虽然我的网站在没有 &lt;html&gt;

        why we use lt;htmlgt; tag although my website runs perfect without lt;htmlgt; tag(为什么我们使用 lt;htmlgt;标记虽然我的网站在没有 lt;htmlgt; 的情况下运行完美标签)
          <tbody id='2vKvS'></tbody>
      1. <i id='2vKvS'><tr id='2vKvS'><dt id='2vKvS'><q id='2vKvS'><span id='2vKvS'><b id='2vKvS'><form id='2vKvS'><ins id='2vKvS'></ins><ul id='2vKvS'></ul><sub id='2vKvS'></sub></form><legend id='2vKvS'></legend><bdo id='2vKvS'><pre id='2vKvS'><center id='2vKvS'></center></pre></bdo></b><th id='2vKvS'></th></span></q></dt></tr></i><div id='2vKvS'><tfoot id='2vKvS'></tfoot><dl id='2vKvS'><fieldset id='2vKvS'></fieldset></dl></div>

            <legend id='2vKvS'><style id='2vKvS'><dir id='2vKvS'><q id='2vKvS'></q></dir></style></legend>

                <small id='2vKvS'></small><noframes id='2vKvS'>

                  <bdo id='2vKvS'></bdo><ul id='2vKvS'></ul>
                  <tfoot id='2vKvS'></tfoot>
                • 本文介绍了为什么我们使用 &lt;html&gt;标记虽然我的网站在没有 &lt;html&gt; 的情况下运行完美标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要从网页的开头知道 <html> 标签的用途,尽管网站在没有这些 <html> 的情况下运行完美</html> 标签.

                  I need to know what is the use of <html> tag from the beginning of the webpage although website runs perfectly without these <html> </html> tags.

                  我知道 doctype 是必需的,但为什么需要这个 <html> 标签.

                  I knew that doctype is required but why this <html> tag is required.

                  推荐答案

                  <html> 标签不是必需的.

                  来自 DTD:

                  <!ELEMENT HTML O O (%html.content;)    -- document root element -->
                  

                  两个O表示开始和结束标记(分别)是可选的.

                  The two Os indicate that the start and end tags (respectively) are optional.

                  另一方面,元素是必需的(但语言的设计是为了让浏览器可以暗示它).

                  The element, on the other hand, is required (but the language is designed so that browsers can imply it).

                  由于 DOM 由一棵节点树组成,因此您必须有一个节点(根元素)才能挂起其他所有内容,这就是 html 元素.

                  Since a DOM consists of a tree of nodes, you have to have one node (the root element) for everything else to hang from, and that is the html element.

                  这也是一个非常有用的地方,可以粘贴将应用于整个文档的 lang 属性.

                  It is also a really useful place to stick a lang attribute that will apply to the entire document.

                  这篇关于为什么我们使用 &lt;html&gt;标记虽然我的网站在没有 &lt;html&gt; 的情况下运行完美标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                  What is quot;X-Content-Type-Options=nosniffquot;?(什么是“X-Content-Type-Options=nosniff?)
                  SmtpJs API not working! is there any way to send emails using SMTP server with JavaScript or JQuery(SmtpJs API 不工作!有没有办法使用带有 JavaScript 或 JQuery 的 SMTP 服务器发送电子邮件)
                  Can I send email using javascript(我可以使用 javascript 发送电子邮件吗)
                  Select All the objects on canvas using Fabric.js(使用 Fabric.js 选择画布上的所有对象)
                  <legend id='NR3cQ'><style id='NR3cQ'><dir id='NR3cQ'><q id='NR3cQ'></q></dir></style></legend>
                • <i id='NR3cQ'><tr id='NR3cQ'><dt id='NR3cQ'><q id='NR3cQ'><span id='NR3cQ'><b id='NR3cQ'><form id='NR3cQ'><ins id='NR3cQ'></ins><ul id='NR3cQ'></ul><sub id='NR3cQ'></sub></form><legend id='NR3cQ'></legend><bdo id='NR3cQ'><pre id='NR3cQ'><center id='NR3cQ'></center></pre></bdo></b><th id='NR3cQ'></th></span></q></dt></tr></i><div id='NR3cQ'><tfoot id='NR3cQ'></tfoot><dl id='NR3cQ'><fieldset id='NR3cQ'></fieldset></dl></div>

                  <tfoot id='NR3cQ'></tfoot>
                    • <small id='NR3cQ'></small><noframes id='NR3cQ'>

                            <tbody id='NR3cQ'></tbody>
                          • <bdo id='NR3cQ'></bdo><ul id='NR3cQ'></ul>