header和footer可以置身于article之外,还能描述它吗?

我有一个single.html页面。这是一个只显示一个帖子的页面。所以我想知道,如果我把<header>/<footer>放在<article>之外(而不是嵌套的),像机器人和浏览器这样的机器是否能理解帖子的元数据?下面是我的示例代码:

<header><!-- document header --></header>
<main id='post'>
    <header><!-- time & title of post stay here --></header>
    <article class='content'><!-- content of post stay here --></article>
    <footer><!-- other data of post stay here --></footer>
</main>
<footer><!-- document footer --></footer>

我想知道这种结构是否可以使Firefox能够正确地识别Firefox的Reader模式(*)的内容,并且搜索引擎机器人可以准确地抓取它正在寻找的数据。

(*):我的意思是FF阅读器模式可以从#post > header获取标题,从#post > .content获取全部内容。

转载请注明出处:http://www.hnlovelyyears.com/article/20230526/2306434.html