<tfoot id='lAN6m'></tfoot>
<legend id='lAN6m'><style id='lAN6m'><dir id='lAN6m'><q id='lAN6m'></q></dir></style></legend>
  • <i id='lAN6m'><tr id='lAN6m'><dt id='lAN6m'><q id='lAN6m'><span id='lAN6m'><b id='lAN6m'><form id='lAN6m'><ins id='lAN6m'></ins><ul id='lAN6m'></ul><sub id='lAN6m'></sub></form><legend id='lAN6m'></legend><bdo id='lAN6m'><pre id='lAN6m'><center id='lAN6m'></center></pre></bdo></b><th id='lAN6m'></th></span></q></dt></tr></i><div id='lAN6m'><tfoot id='lAN6m'></tfoot><dl id='lAN6m'><fieldset id='lAN6m'></fieldset></dl></div>

      • <bdo id='lAN6m'></bdo><ul id='lAN6m'></ul>
    1. <small id='lAN6m'></small><noframes id='lAN6m'>

      1. 在 HTML5 中,&lt;header&gt;和&lt;页脚&gt;标签出现在 &am

        时间:2023-07-31

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

          <legend id='rmIq9'><style id='rmIq9'><dir id='rmIq9'><q id='rmIq9'></q></dir></style></legend>
        2. <small id='rmIq9'></small><noframes id='rmIq9'>

              <bdo id='rmIq9'></bdo><ul id='rmIq9'></ul>
              <tfoot id='rmIq9'></tfoot>

                  本文介绍了在 HTML5 中,&lt;header&gt;和&lt;页脚&gt;标签出现在 &lt;body&gt; 之外.标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我目前是这样使用上面的标签的(经典的标签顺序):

                  I'm currently using the above tags in this way (classic tag order):

                  <html>
                    <head>...</head>
                    <body>
                      <header>...</header>
                      <section>...</section>
                      <footer>...</footer>
                    </body>
                  </html>
                  

                  标签的使用和规范在以前的 HTML (4.x) 版本中非常严格,而 HTML5 并不真正需要 <head> 甚至 <body>标签.

                  Tag usage and specifications were very rigid in previous versions of HTML (4.x), while HTML5 doesn't really need <head> and even <body> tags.

                  所以我会使用以下结构,恕我直言,它比前一个更语义化.

                  So I would use the following structure, which IMHO is much more semantic than the previous one.

                  <html>
                    <header>...</header>     <!-- put header and footer outside the body tag -->
                    <body>
                      <section>...</section>
                      <section>...</section>
                      <section>...</section>
                    </body>
                    <footer>...</footer>
                  </html>
                  

                  你怎么看?

                  推荐答案

                  嗯,<head>标签与<header>标签无关.head 中包含所有元数据和内容,而 header 只是一个布局组件.
                  布局进入body.所以我不同意你的观点.

                  Well, the <head> tag has nothing to do with the <header> tag. In the head comes all the metadata and stuff, while the header is just a layout component.
                  And layout comes into body. So I disagree with you.

                  这篇关于在 HTML5 中,&lt;header&gt;和&lt;页脚&gt;标签出现在 &lt;body&gt; 之外.标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  <tfoot id='e1ST5'></tfoot>
                  • <bdo id='e1ST5'></bdo><ul id='e1ST5'></ul>
                    <legend id='e1ST5'><style id='e1ST5'><dir id='e1ST5'><q id='e1ST5'></q></dir></style></legend>
                    <i id='e1ST5'><tr id='e1ST5'><dt id='e1ST5'><q id='e1ST5'><span id='e1ST5'><b id='e1ST5'><form id='e1ST5'><ins id='e1ST5'></ins><ul id='e1ST5'></ul><sub id='e1ST5'></sub></form><legend id='e1ST5'></legend><bdo id='e1ST5'><pre id='e1ST5'><center id='e1ST5'></center></pre></bdo></b><th id='e1ST5'></th></span></q></dt></tr></i><div id='e1ST5'><tfoot id='e1ST5'></tfoot><dl id='e1ST5'><fieldset id='e1ST5'></fieldset></dl></div>
                            <tbody id='e1ST5'></tbody>

                        1. <small id='e1ST5'></small><noframes id='e1ST5'>