两种不同类型的角色实体?
显然,HTML/XML 中有两种不同类型的字符实体。
有由数字指定的,即 <
和 >
还有由字母指定的,><
和 >
这些类型的字符实体是否都有特定的名称,或者它们只是“由数字和字符实体指定的字符实体”是用字母指定的吗?
Clearly there are two different types of character entities in HTML/XML.
There are the ones that are specified by numbers, i.e. <
and >
And then there are the ones that are specified by letters, <
and >
Is there a specific name for each of these types of character entities, or are they just "character entities that are specified by numbers and character entities that are specified by letters?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们是数字字符引用 (
<
) 和< a href="http://www.w3.org/TR/html4/sgml/entities.html#h-24.2" rel="nofollow">字符实体 (<)。
字符实体定义为字符引用序列 - 例如,
。
nbsp
定义为处理时,字符实体将转换为相应的字符引用。
顺便说一句 - 字符实体可以定义为多个字符引用,尽管 XML 或 HTML 中还没有这样做。
These are numeric character references (
<
) and character entities (<
).Character entities are defined as a sequence of character references - for instance,
.
nbsp
is defined asWhen processed, character entities are converted to the corresponding character references.
By the way - a character entity can be defined as more than one character reference, though this has not been done in XML or HTML.