The format for a hexadecimal character code in HTML is:
�
... where 00
is the UTF-8 or ASCII code of the character.
Obviously the &
and the ;
are somewhat arbitrary codes, and the #
indicates that a numerical code is being given rather than a text reference like &
for ampersand. Without the x
, the browser expects a code in decimal format, which makes sense.
But why the x
to indicate hexidecimal?
x表示是十六进制参考: http : //www.w3schools.com/charsets/ref_utf_dingbats.asp
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.