我对那个人使用的
从这个视频中迭代代码: http://youtu.be/eOG90Q8EfRo?t=15m1s
content
元素感到困惑。我找不到有关它的信息,据我所知,在HTML5中没有这样的东西。我错了吗?从这个视频中迭代代码: http://youtu.be/eOG90Q8EfRo?t=15m1s
<article>
<header> </header>
<footer> </footer>
<content> Is this correct? </content>
</article>
<main>
而不是<content>
。然而,在W3C HTML5标准中,<main>
仅用于<body>
元素的主要内容,因此可能不适合用于标记文章的主要内容,如视频所示。 - Alohci<main>
替换div.mainContent
是正确的吗? - sewo<content>
标签。它与Shadow DOM相关:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content - Ajedi32