环球门户网

html转义字符知识介绍

更新时间:2023-10-07 09:45:06

导读 目前关于大家提出的html转义字符这个问题,大家都希望能够得到一个答案,那么小编今天就去收集了一些html转义字符相关的内容来分享给大...

目前关于大家提出的html转义字符这个问题,大家都希望能够得到一个答案,那么小编今天就去收集了一些html转义字符相关的内容来分享给大家,如果大家感兴趣的话可以接着往下看。

html转义字符有哪些呢?下面就让我们一起来了解一下吧:

转义字符串也叫做字符实体,在HTML中,定义转义字符串的原因其实主要有两种,即第一种原因是像“<”与“>”这类符号已经用于表示HTML标签,因此就不可以直接作为文本中的符号来使用。

而为了能够在HTML文档中使用这些符号,就需要定义它的转义字符串。也就是说在解释程序遇到这类字符串时就需要将其解释为真实的字符,不过需要注意的是,在输入转义字符串时,需要严格遵守字母大小写的规则。

第二种原因是有些字符在ASCII字符集中可能是没有定义的,因此是需要使用转义字符串来表示。

特殊的转义字符有:

字符

十进制

转义字符

"

"

1&quot;

1&

1&

1&amp;

1<

1<

1&lt;

1>

1>

20、&gt;

2不断开空格(non-breaking space)

2&nbsp;

2当然还有一些其他的转义字符,即:

2ISO Latin-1字符集:&#09; — 制表符Horizontal tab&#10; — 换行Line feed&#13; — 回车Carriage Return&#32; — Space! &#33; — 惊叹号Exclamation mark” &#34; &quot; 双引号Quotation mark# &#35; — 数字标志Number sign$ &#36; — 美元标志Dollar sign% &#37; — 百分号Percent sign& &#38; &amp; Ampersand‘ &#39; — 单引号Apostrophe( &#40; — 小括号左边部分Left parenthesis) &#41; — 小括号右边部分Right parenthesis* &#42; — 星号Asterisk+ &#43; — 加号Plus sign, &#44; — 逗号Comma- &#45; — 连字号Hyphen. &#46; — 句号Period (fullstop)/ &#47; — 斜杠Solidus (slash)0 &#48; — 数字0 Digit 01 &#49; — 数字1 Digit 12 &#50; — 数字2 Digit 23 &#51; — 数字3 Digit 34 &#52; — 数字4 Digit 45 &#53; — 数字5 Digit 56 &#54; — 数字6 Digit 67 &#55; — 数字7 Digit 78 &#56; — 数字8 Digit 89 &#57; — 数字9 Digit 9: &#58; — 冒号Colon; &#59; — 分号Semicolon< &#60; &lt; 小于号Less than= &#61; — 等于符号Equals sign> &#62; &gt; 大于号Greater than? &#63; — 问号Question mark@ &#64; — Commercial atA &#65; — 大写A Capital AB &#66; — 大写B Capital BC &#67; — 大写C Capital CD &#68; — 大写D Capital DE &#69; — 大写E Capital EF &#70; — 大写F Capital FG &#71; — 大写G Capital GH &#72; — 大写H Capital HI &#73; — 大写J Capital IJ &#74; — 大写K Capital JK &#75; — 大写L Capital K

2L &#76; — 大写K Capital LM &#77; — 大写M Capital MN &#78; — 大写N Capital NO &#79; — 大写O Capital OP &#80; — 大写P Capital PQ &#81; — 大写Q Capital QR &#82; — 大写R Capital RS &#83; — 大写S Capital ST &#84; — 大写T Capital TU &#85; — 大写U Capital UV &#86; — 大写V Capital VW &#87; — 大写W Capital WX &#88; — 大写X Capital XY &#89; — 大写Y Capital YZ &#90; — 大写Z Capital Z[ &#91; --- 中括号左边部分Left square bracket\ &#92; --- 反斜杠Reverse solidus (backslash)] &#93; — 中括号右边部分Right square bracket^ &#94; — Caret_ &#95; — 下划线Horizontal bar (underscore)` &#96; — 尖重音符Acute accenta &#97; — 小写a Small ab &#98; — 小写b Small bc &#99; — 小写c Small cd &#100; — 小写d Small de &#101; — 小写e Small ef &#102; — 小写f Small fg &#103; — 小写g Small gh &#104; — 小写h Small hi &#105; — 小写i Small ij &#106; — 小写j Small jk &#107; — 小写k Small kl &#108; — 小写l Small lm &#109; — 小写m Small mn &#110; — 小写n Small no &#111; — 小写o Small op &#112; — 小写p Small pq &#113; — 小写q Small qr &#114; — 小写r Small rs &#115; — 小写s Small st &#116; — 小写t Small tu &#117; — 小写u Small uv &#118; — 小写v Small vw &#119; — 小写w Small wx &#120; — 小写x Small xy &#121; — 小写y Small yz &#122; — 小写z Small z{ &#123; — 大括号左边部分Left curly brace| &#124; — 竖线Vertical bar} &#125; — 大括号右边部分Right curly brace~ &#126; — Tilde— &#127; — 未使用Unused&#160; &nbsp; 空格Nonbreaking space? &#161; &iexcl; Inverted exclamation¢ &#162; &cent; 货币分标志Cent sign£ &#163; &pound; 英镑标志Pound sterling¤ &#164; &curren; 通用货币标志General currency sign¥ &#165; &yen; 日元标志Yen sign| &#166; &brvbar; or &brkbar; 断竖线Broken vertical bar§ &#167; &sect; 分节号Section sign¨ &#168; &uml; or &die; 变音符号Umlaut? &#169; &copy; 版权标志Copyrighta &#170; &ordf; Feminine ordinal? &#171; &laquo; Left angle quote, guillemet left? &#172; &not Not sign? &#173; &shy; Soft hyphen? &#174; &reg; 注册商标标志Registered trademarkˉ &#175; &macr; or &hibar; 长音符号Macron accent° &#176; &deg; 度数标志Degree sign± &#177; &plusmn; 加或减Plus or minus2 &#178; &sup2; 上标2 Superscrīpt two3 &#179; &sup3; 上标3 Superscrīpt three′ &#180; &acute; 尖重音符Acute accentμ &#181; &micro; Micro sign? &#182; &para; Paragraph sign? &#183; &middot; Middle dot? &#184; &cedil; Cedilla1 &#185; &sup1; 上标1 Superscrīpt oneo &#186; &ordm; Masculine ordinal? &#187; &raquo; Right angle quote, guillemet right? &#188; &frac14; 四分之一Fraction one-fourth? &#189; &frac12; 二分之一Fraction one-half? &#190; &frac34; 四分之三Fraction three-fourths? &#191; &iquest; Inverted question markà &#192; &Agrave; Capital A, grave accentá &#193; &Aacute; Capital A, acute accent? &#194; &Acirc; Capital A, circumflex? &#195; &Atilde; Capital A, tilde? &#196; &Auml; Capital A, di?esis / umlaut? &#197; &Aring; Capital A, ring? &#198; &AElig; Capital AE ligature? &#199; &Ccedil; Capital C, cedillaè &#200; &Egrave; Capital E, grave accenté &#201; &Eacute; Capital E, acute accentê &#202; &Ecirc; Capital E, circumflex? &#203; &Euml; Capital E, di?esis / umlautì &#204; &Igrave; Capital I, grave accentí &#205; &Iacute; Capital I, acute accent? &#206; &Icirc; Capital I, circumflex? &#207; &Iuml; Capital I, di?esis / umlautD &#208; &ETH; Capital Eth, Icelandic? &#209; &Ntilde; Capital N, tildeò &#210; &Ograve; Capital O, grave accentó &#211; &Oacute; Capital O, acute accent? &#212; &Ocirc; Capital O, circumflex? &#213; &Otilde; Capital O, tilde? &#214; &Ouml; Capital O, di?esis / umlaut× &#215; &times; 乘号Multiply sign? &#216; &Oslash; Capital O, slashù &#217; &Ugrave; Capital U, grave accentú &#218; &Uacute; Capital U, acute accent? &#219; &Ucirc; Capital U, circumflexü &#220; &Uuml; Capital U, di?esis / umlautY &#221; &Yacute; Capital Y, acute accentT &#222; &THORN; Capital Thorn, Icelandic? &#223; &szlig; Small sharp s, German szà &#224; &agrave; Small a, grave accentá &#225; &aacute; Small a, acute accenta &#226; &acirc; Small a, circumflex? &#227; &atilde; Small a, tilde? &#228; &auml; Small a, di?esis / umlaut? &#229; &aring; Small a, ring? &#230; &aelig; Small ae ligature? &#231; &ccedil; Small c, cedillaè &#232; &egrave; Small e, grave accenté &#233; &eacute; Small e, acute accentê &#234; &ecirc; Small e, circumflex? &#235; &euml; Small e, di?esis / umlaut

2以上就是小编的分享了,希望能够帮助到大家。

本文html转义字符到此分享完毕,希望对大家有所帮助。

版权声明:转载此文是出于传递更多信息之目的。若有来源标注错误或侵犯了您的合法权益,请作者持权属证明与本网联系,我们将及时更正、删除,谢谢您的支持与理解。