- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 the HTML 4.01 specification at w3.org 中阅读了有关 HTML 文档结构的内容.然后我偶然发现了这段代码;它看起来像某种定义。你们中的任何人都可以详细说明它的用途和含义吗?
<!ENTITY % html.content "HEAD, BODY">
<!ELEMENT HTML O O (%html.content;) -- document root element -->
<!ATTLIST HTML
%i18n; -- lang, dir --
>
最佳答案
它是 HTML 4.01 DTD之一的片段:文档类型定义。
参见 the tag wiki对于 dtd其中包含更多链接。
DTDs define formal grammars for XML documents: which tags you can use and where you can use them.
HTML 4.01 specification你正在阅读的有一个introduction概述了规范的结构。
1.1 How the specification is organized
Sections 2 and 3: Introduction to HTML 4
[…]
The brief SGML tutorial gives readers some understanding of HTML’s relationship to SGML and gives summary information on how to read the HTML Document Type Definition (DTD).
第三部分提供了深入的解释:
3.3 How to read the HTML DTD
Each element and attribute declaration in this specification is accompanied by its document type definition fragment. We have chosen to include the DTD fragments in the specification rather than seek a more approachable, but longer and less precise means of describing an element’s properties. The following tutorial should allow readers unfamiliar with SGML to read the DTD and understand the technical details of the HTML specification.
关于html - 这个 HTML 代码 (`<!ENTITY % html.content …>` , `<!ELEMENT …>` , `<!ATTLIST …>` ) 写在 w3.org 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58804963/
您好,是否可以在 ATTLIST 中只允许一定范围内的数字? 我知道你可以有一个集合的枚举如下: 但是可以有 0 - 100,而不必键入所有 100 个数字吗?谢谢。 最佳答案 因为 DTD 不支持类
我声明了rel="value" 的属性DTD 中的元素是这样的: ]> 在那之后我的代码是是有效的,但我有另一个发行人:浏览器呈现 "]>"文档中的字符。 如何解决这个问题? 最佳答案 您不应该在文
我正在尝试使用 opdis 解析 XML 文件(由 lxml 提供) ;它在这一行失败: 上面写着:Attribute operand of type: invalid default value
我在 the HTML 4.01 specification at w3.org 中阅读了有关 HTML 文档结构的内容.然后我偶然发现了这段代码;它看起来像某种定义。你们中的任何人都可以详细说明它的
我是一名优秀的程序员,十分优秀!