是否有< section>在另一个<节>标记内标记标签? [英] Is it valid to have a <section> tag inside another <section> tag?

查看:85
本文介绍了是否有< section>在另一个<节>标记内标记标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< section> 标记是否允许包含在另一个< section> 标记中?它会在HTML5中验证吗?

解决方案

! w3鼓励你显式地将部分包含在切片内容的元素中,而不是依赖于通过在切片内容的一个元素中包含多个标题而生成的隐式部分,并允许嵌套的< section>。 / p>

Are <section> tags allowed to be included within another <section> tag? Will it validate in HTML5?

解决方案

Yes! w3 encourages you to explicitly wrap sections in elements of sectioning content, instead of relying on the implicit sections generated by having multiple headings in one element of sectioning content and nested <section>'s are allowed.

这篇关于是否有&lt; section&gt;在另一个&lt;节&gt;标记内标记标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆