W3C验证:奇怪的HTML 5错误

htw*_*htw 0 html tags validation html5 w3c

当我验证以下HTML5代码时出现以下错误:

<article>
 <header>
  <num>1</num>
  <hgroup>
   <h2><a href="#">Title with link</a></h2>
   <address>Teststreet 11</address>
  </hgroup>
 </header>
 <footer>
 <ul>
  <li><a href="#">&raquo; Mehr</a></li>
 </ul>
 </footer>
</article>
Run Code Online (Sandbox Code Playgroud)

错误:

  • 在此上下文中,元素num不允许作为元素标头的子元素.
  • 元素地址不允许作为thiscontext中元素hgroup的子元素.
  • 在此上下文中,元素评级不允许作为元素hgroup的子元素.

Phi*_*lip 5

我不知道有一个叫做的标签 num

hgroup应该只包含 h1,h2,h3,h4,h5,h6

这些错误非常自我解释

在此上下文中,元素地址不允许作为元素hgroup的子元素