您可以直接使用字符“≥”和“≤”,前提是您的页面是UTF-8编码并声明为此。 如果这不可能或不够方便,你可以使用字符引用≥
和≤
(或其十进制等值)。
或者,您可以使用旧的实体引用≥
和≤
,其含义与≥
相同≥
和≤
但是得到了更好的支持(普遍)。
实体引用,例如≥
(应避免与HTML 4.01中定义的实体集相反)。 它们不会增加HTML语言的表达能力; 它们只是为字符引用提供了一种欺骗性的准助记符替代方法。 它们是在HTML5草案中引入的,主要是因为它们是用MathML定义的,不到两年前没有浏览器支持它们,因此仍有大量浏览器将它们视为未定义,从字面上显示它们。
You can use the characters “≥” and “≤” directly, provided that you page is UTF-8 encoded and declared as such. If this is not possible or convenient enough, you can use the character references ≥
and ≤
(or their decimal equivalents).
Alternatively, you can use the older entity references ≥
and ≤
, which have the same meaning as ≥
and ≤
but are much better supported (universally).
Entity references such as ≥
(as opposite to the set of entities as defined in HTML 4.01) should be avoided. They add nothing to the expressive power of the HTML language; they just provide a deceptive quasi-mnemonic alternative to character references. They were introduced in HTML5 drafts mainly because they are defined in MathML, and less than two years ago no browser supported them, so there is still a large number of browsers that treat them as undefined, displaying them literally.
请发表评论