两种不同类型的角色实体?

发布于 2024-10-05 10:18:36 字数 219 浏览 3 评论 0原文

显然,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东走西顾 2024-10-12 10:18:36

它们是数字字符引用 (<) 和< 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 as  .

When 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文