HTML嵌套规则在哪里? [英] Where in the world are are the HTML nesting rules?

查看:53
本文介绍了HTML嵌套规则在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以提供包含所有HTML(最好是HTML5)嵌套规则的文档的链接吗?

Can someone provide a link to a document that has all HTML (preferably HTML5) nesting rules?

例如:您不能将< div> 放在< p> 内.

For example: you can't put a <div> inside a <p>.

谢谢!

推荐答案

请参见 HTML 5规范.以 p元素为例.

内容模型将告诉您它可以包含的内容.在这种情况下:短语内容."链接到散布有异常的元素列表.

The Content Model will tell you what it can contain. In this case: "Phrasing content.", which links to a list of elements interspersed with exceptions.

这篇关于HTML嵌套规则在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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