HTML实体

什么是HTML实体:  

html文件要在网页上显示一些特殊符号 所用的代码 就是实体。

格式:

&代码;

注意:实体对大小写敏感。

ASCII

结果

描述

实体名称

实体编号

"

quotation mark

"

"

'

apostrophe

'

'

&

ampersand

&

&

<

less-than

&lt;

<

>

greater-than

&gt;

>

 

符号实体

结果

描述

实体名称

实体编号

 

non-breaking space

&nbsp;

 

¡

inverted exclamation mark

&iexcl;

¡

cent

&cent;

¢

pound

&pound;

£

¤

currency

&curren;

¤

yen

&yen;

¥

|

broken vertical bar

&brvbar;

¦

§

section

&sect;

§

¨

spacing diaeresis

&uml;

¨

©

copyright

&copy;

©

a

feminine ordinal indicator

&ordf;

ª

«

angle quotation mark (left)

&laquo;

«

¬

negation

&not;

¬

 

soft hyphen

&shy;

 

®

registered trademark

&reg;

®

ˉ

spacing macron

&macr;

¯

°

degree

&deg;

°

±

plus-or-minus

&plusmn;

±

2

superscript 2

&sup2;

²

3

superscript 3

&sup3;

³

spacing acute

&acute;

´

μ

micro

&micro;

µ

paragraph

&para;

·

middle dot

&middot;

·

¸

spacing cedilla

&cedil;

¸

1

superscript 1

&sup1;

¹

o

masculine ordinal indicator

&ordm;

º

»

angle quotation mark (right)

&raquo;

»

¼

fraction 1/4

&frac14;

¼

½

fraction 1/2

&frac12;

½

¾

fraction 3/4

&frac34;

¾

¿

inverted question mark

&iquest;

¿

×

multiplication

&times;

×

÷

division

&divide;

÷

 

字符实体

结果

描述

实体名称

实体编号

à

capital a, grave accent

&Agrave;

À

á

capital a, acute accent

&Aacute;

Á

Â

capital a, circumflex accent

&Acirc;

Â

Ã

capital a, tilde

&Atilde;

Ã

Ä

capital a, umlaut mark

&Auml;

Ä

Å

capital a, ring

&Aring;

Å

Æ

capital ae

&AElig;

Æ

Ç

capital c, cedilla

&Ccedil;

Ç

è

capital e, grave accent

&Egrave;

È

é

capital e, acute accent

&Eacute;

É

ê

capital e, circumflex accent

&Ecirc;

Ê

Ë

capital e, umlaut mark

&Euml;

Ë

ì

capital i, grave accent

&Igrave;

Ì

í

capital i, acute accent

&Iacute;

Í

Î

capital i, circumflex accent

&Icirc;

Î

Ï

capital i, umlaut mark

&Iuml;

Ï

D

capital eth, Icelandic

&ETH;

Ð

Ñ

capital n, tilde

&Ntilde;

Ñ

ò

capital o, grave accent

&Ograve;

Ò

ó

capital o, acute accent

&Oacute;

Ó

Ô

capital o, circumflex accent

&Ocirc;

Ô

Õ

capital o, tilde

&Otilde;

Õ

Ö

capital o, umlaut mark

&Ouml;

Ö

Ø

capital o, slash

&Oslash;

Ø

ù

capital u, grave accent

&Ugrave;

Ù

ú

capital u, acute accent

&Uacute;

Ú

Û

capital u, circumflex accent

&Ucirc;

Û

ü

capital u, umlaut mark

&Uuml;

Ü

Y

capital y, acute accent

&Yacute;

Ý

T

capital THORN, Icelandic

&THORN;

Þ

ß

small sharp s, German

&szlig;

ß

à

small a, grave accent

&agrave;

à

á

small a, acute accent

&aacute;

á

a

small a, circumflex accent

&acirc;

â

ã

small a, tilde

&atilde;

ã

ä

small a, umlaut mark

&auml;

ä

å

small a, ring

&aring;

å

æ

small ae

&aelig;

æ

ç

small c, cedilla

&ccedil;

ç

è

small e, grave accent

&egrave;

è

é

small e, acute accent

&eacute;

é

ê

small e, circumflex accent

&ecirc;

ê

ë

small e, umlaut mark

&euml;

ë

ì

small i, grave accent

&igrave;

ì

í

small i, acute accent

&iacute;

í

î

small i, circumflex accent

&icirc;

î

ï

small i, umlaut mark

&iuml;

ï

e

small eth, Icelandic

&eth;

ð

ñ

small n, tilde

&ntilde;

ñ

ò

small o, grave accent

&ograve;

ò

ó

small o, acute accent

&oacute;

ó

ô

small o, circumflex accent

&ocirc;

ô

õ

small o, tilde

&otilde;

õ

ö

small o, umlaut mark

&ouml;

ö

ø

small o, slash

&oslash;

ø

ù

small u, grave accent

&ugrave;

ù

ú

small u, acute accent

&uacute;

ú

û

small u, circumflex accent

&ucirc;

û

ü

small u, umlaut mark

&uuml;

ü

y

small y, acute accent

&yacute;

ý

t

small thorn, Icelandic

&thorn;

þ

ÿ

small y, umlaut mark

&yuml;

ÿ

 

 

显示结果

描述

实体名称

实体编号

 

空格

&nbsp;

 

<

小于号

&lt;

<

>

大于号

&gt;

>

&

和号

&amp;

&

"

引号

&quot;

"

'

撇号

&apos; (IE不支持)

'

&cent;

¢

&pound;

£

人民币

&yen;

¥

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2018-11-02 10:44  蓝青儿  阅读(350)  评论(0编辑  收藏  举报