在哪里可以找到正确的 HTML 嵌套标准列表? [英] Where can I find a list of proper HTML nesting standards?

查看:23
本文介绍了在哪里可以找到正确的 HTML 嵌套标准列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索 Stack Overflow 和网络的其他部分,寻找与所有 HTML 元素相关的适当嵌套标准,但搜索似乎是徒劳的.

这就是为什么我要问,哪里有正确嵌套标准的参考(例如,您不能将 <div> 标签放入 <p> 标签)?

解决方案

试试 语言定义

(提示:如果向下滚动到底部,则有元素和属性的索引)

还有 HTML5 的最新草案>

I've been crawling Stack Overflow and the rest of the web, looking for proper nesting standards in regards to all HTML elements, but the search seems to be in vain.

Which is why I am asking, where is there a reference of the proper nesting standards (such as the fact that you can't put <div> tags inside a <p> tag)?

解决方案

Try the language definition

(hint: there are indexen of elements and attributes if you scroll down to the bottom)

EDIT: there's also the latest draft of HTML5

这篇关于在哪里可以找到正确的 HTML 嵌套标准列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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