HTML entities in numeric order

Named HTML entities in numeric order

Below are the entities listed in numeric order with definition and ISO numeric code. CSS ‘content’ does not accept named entities or regular numeric entities such as @, but does render ASCII text and unicode.

If you want to replace the bullets in a bulleted list with a different character, perhaps a ♥ or · you would need to use the unicode entity rather than the named or numeric entity: use the hexadecimal entity.

li:before {content:”\2665″; text-indent: -10px;}

JavaScript Special Characters / Entities

If you want to include characters in JavaScript, the process is very similar to the CSS inclusion method, except : in JavaScript use octal-encoded characters without a preceding 0 instead of the HTML entity for the normal chars, and the hex character preceded by a \u for all other characters..

alert(‘M\351nage \340 trois.’)

通过» Javascript, CSS, and (X)HTML entities in numeric order :: CSS, JavaScript and XHTML Explained.

HTML实体符号代码速查 HTML Symbol Entities CodesSmartree Tech

通过HTML实体符号代码速查 HTML Symbol Entities CodesSmartree Tech.


字符 实体名称 实体数字 描述
& & & and符号,与
" " 引号
© © © 版权标志
® ® » 注册标志
™ 商标标志
“ 左双引号
” 右双引号
‘ 做单引号
’ 右单引号
« « « 左三角双引号
» » » 右三角双引号
‹ 左三角单引号
› 右三角单引号
§ § § 章节标志
¶ 段落标志
• 列表圆点(大)
· · · 列表圆点(中)
… 省略号
| | 竖线
¦ ¦ ¦ 断的竖线
– 短破折号
— 长破折号
字符 实体名称 实体数字 描述
¤ ¤ ¤ 一般货币符号
$ $ 美元符号
¢ ¢ ¢
£ £ £ 英镑
¥ ¥ ¥ 日元
€ 欧元
字符 实体名称 实体数字 描述
< &lt; < 小于号
> &gt; > 大于号
&le; 小于等于号
&ge; 大于等于号
× &times; × 乘号
÷ &divide; ÷ 除号
&minus; 减号
± &plusmn; ± 加/减 号
&ne; 不等于号
¹ &sup1; ¹ 上标1
² &sup2; ² 上标2
³ &sup3; ³ 上标3
½ &frac12; ½ 二分之一
¼ &frac14; ¼ 四分之一
¾ &frac34; ¾ 四分之三
&permil; 千分率
° &deg; °
&radic; 平方根
&infin; 无限大
字符 实体名称 实体数字 描述
&larr; 左箭头
&uarr; 上箭头
&rarr; 右箭头
&darr; 下箭头
&harr; 左右箭头
&crarr; 回车箭头
&lceil; 左上限
&rceil; 右上限
&lfloor; 左下限
&rfloor; 右下限
字符 实体名称 实体数字 描述
&spades; 黑桃
&clubs; 梅花
&hearts; 红桃,心
&diams; 方块牌
&loz; 菱形
&dagger; 匕首
&Dagger; 双剑号
¡ &iexcl; ¡ 反向感叹号
¿ &iquest; ¿ 反向问号

What are HTML Entities?

Entities are used to implement reserved characters or to express characters that cannot easily be entered with the keyboard.

ISO-8859-1 is the default character set in most browsers.

The first 128 characters of ISO-8859-1 is the original ASCII character-set (the numbers from 0-9, the uppercase and lowercase English alphabet, and some special characters).

The higher part of ISO-8859-1 (codes from 160-255) contains the characters used in Western European countries and some commonly used special characters.

The HTML Symbol Entities include mathematical symbols, Greek characters, various arrows, technical symbols and shapes.

It is worth noting that Entity Names are case sensitive.

参考:Entitycode.comHTML ISO-8859-1 ReferenceCSS9.NET