Heim  >  Artikel  >  Web-Frontend  >  So zeigen Sie spezielle Symbole in HTML5 an

So zeigen Sie spezielle Symbole in HTML5 an

青灯夜游
青灯夜游Original
2021-03-08 11:34:507809Durchsuche

在HTML5中,特殊符号可以通过“字符实体”来显示。HTML中一些特殊符号是无法直接使用显示的,例如“e84aacd5f768f485facc4bd6b8750f46”,浏览器会误认为它们是标签;此时就可以使用字符实体“e84aacd5f768f485facc4bd6b8750f46”来显示它们。

So zeigen Sie spezielle Symbole in HTML5 an

本教程操作环境:windows7系统、HTML5版、Dell G3电脑。

在 HTML 中,某些字符是预留的。

在 HTML 中不能使用小于号(3ef21205cb993a81341dc5a75b041b28),这是因为浏览器会误认为它们是标签。

如下面的html代码:

   <body>
        显示:<input id="myTest" type="text" value="5<=6" ></input>
    </body>

上面的value属性值中含有“dda0026ff94ac165d1ec124bc4438d36

&#62; &gt; 大于号Greater than ? &#63; 问号Question mark @ &#64; Commercial at A &#65; 大写A Capital A B &#66; 大写B Capital B C &#67; 大写C Capital C D &#68; 大写D Capital D E &#69; 大写E Capital E F &#70; 大写F Capital F G &#71; 大写G Capital G H &#72; 大写H Capital H I &#73; 大写J Capital I J &#74; 大写K Capital J K &#75; 大写L Capital K L &#76; 大写K Capital L M &#77; 大写M Capital M N &#78; 大写N Capital N O &#79; 大写O Capital O P &#80; 大写P Capital P Q &#81; 大写Q Capital Q R &#82; 大写R Capital R S &#83; 大写S Capital S T &#84; 大写T Capital T U &#85; 大写U Capital U Großbuchstaben V Großbuchstaben V Großbuchstaben W V &#86; 大写V Capital V W &#87; 大写W Capital W X &#88; 大写X Capital X Y &#89; 大写Y Capital Y Z &#90; 大写Z Capital Z [ &#91; 中括号左边部分Left square bracket &#92; 反斜杠Reverse solidus (backslash) ] &#93; 中括号右边部分Right square bracket ^ &#94; Caret _ &#95; 下划线Horizontal bar (underscore) ` &#96; 尖重音符Acute accent a &#97; 小写a Small a b &#98; 小写b Small b c &#99; 小写c Small c d &#100; 小写d Small d e &#101; 小写e Small e f &#102; 小写f Small f g &#103; 小写g Small g h &#104; 小写h Small h i &#105; 小写i Small i j &#106; 小写j Small j k &#107; 小写k Small k l &#108; 小写l Small l m &#109; 小写m Small m n &#110; 小写n Small n o &#111; 小写o Small o p &#112; 小写p Small p q &#113; 小写q Small q r &#114; 小写r Small r s &#115; 小写s Small s t &#116; 小写t Small t u &#117; 小写u Small u v &#118; 小写v Small v w &#119; 小写w Small w x &#120; 小写x Small x y &#121; 小写y Small y z &#122; 小写z Small z { &#123; 大括号左边部分Left curly brace | &#124; X X Großbuchstaben 🎜Z🎜🎜Großbuchstaben Z Großbuchstaben Z🎜🎜🎜🎜🎜[🎜🎜🎜[ 🎜🎜Linke eckige Klammer🎜🎜🎜🎜🎜 🎜🎜🎜\🎜🎜BackslashUmgekehrter Solidus (Backslash)🎜🎜🎜🎜🎜]🎜🎜🎜]🎜🎜Rechte eckige Klammer🎜🎜🎜🎜🎜^ 🎜🎜🎜^🎜🎜Caret🎜🎜🎜 🎜🎜_🎜🎜🎜_🎜🎜underline Horizontaler Balken (Unterstrich)🎜🎜🎜 🎜🎜`🎜🎜🎜`🎜🎜tip Akuter Akzent 🎜🎜🎜🎜🎜a🎜🎜🎜a🎜🎜Kleinbuchstabe a Kleines a 🎜🎜🎜🎜🎜b🎜🎜🎜b code>🎜🎜Kleinbuchstabe b Kleines b🎜🎜🎜🎜🎜c🎜🎜🎜c 🎜🎜Kleinbuchstabe c Kleines c🎜🎜🎜🎜🎜d🎜🎜🎜 100;🎜🎜Kleinbuchstabe d Kleines d🎜🎜🎜🎜🎜e🎜🎜🎜e 🎜🎜Kleinbuchstabe e Kleines e🎜🎜🎜🎜🎜f🎜 🎜🎜f🎜🎜Kleinbuchstabe f Kleines f🎜🎜🎜🎜🎜g🎜🎜🎜 g🎜🎜Kleinbuchstabe g Kleines g🎜🎜🎜🎜🎜h🎜🎜🎜h🎜🎜Kleinbuchstabe h Kleines h🎜🎜🎜🎜🎜i🎜🎜🎜i🎜🎜Kleinbuchstabe i Kleinbuchstabe i🎜🎜🎜 🎜🎜j🎜🎜🎜j🎜🎜Kleinbuchstabe j Kleinbuchstabe j🎜🎜🎜🎜🎜 k🎜🎜🎜k🎜🎜Kleinbuchstabe k Klein k🎜🎜🎜🎜🎜l🎜🎜🎜l🎜🎜Kleinbuchstabe l Kleines l 🎜🎜🎜🎜🎜m🎜🎜🎜m🎜 🎜Kleinbuchstabe m Kleines m🎜🎜🎜🎜🎜n🎜🎜🎜n🎜🎜 Kleinbuchstabe n Kleines n🎜🎜🎜🎜🎜o🎜🎜🎜o🎜🎜kleines o Kleines p #113;🎜🎜Kleinbuchstabe q Kleines q🎜🎜🎜🎜🎜r 🎜🎜🎜r🎜🎜Kleinbuchstaben r Kleines r🎜🎜🎜🎜🎜s 🎜🎜🎜s🎜🎜Kleinbuchstaben s Kleines s🎜🎜 🎜🎜🎜t🎜🎜🎜t🎜🎜Kleinbuchstabe t Kleines t🎜🎜🎜🎜🎜u 🎜🎜🎜u🎜🎜Kleinbuchstabe u Kleines u🎜🎜🎜🎜🎜v🎜🎜🎜v🎜🎜Kleinbuchstabe v Kleines v🎜🎜 🎜🎜🎜w🎜🎜🎜w ? 🎜🎜Kleines z Kleines z🎜🎜🎜🎜🎜{🎜🎜🎜{🎜🎜Linke geschweifte Klammer🎜🎜🎜🎜|🎜🎜🎜| Code> Code>🎜🎜Vertikaler Balken🎜🎜🎜🎜🎜} }<code>&#125; 大括号右边部分Right curly brace ~ &#126; Tilde &#127; 未使用Unused   &#160; 空格Nonbreaking space ¡ &#161; &iexcl; Inverted exclamation ¢ &#162; &cent; 货币分标志Cent sign £ &#163; &pound; 英镑标志Pound sterling ¤ &#164; &curren; 通用货币标志General currency sign ¥ &#165; &yen; 日元标 ¦ &#166; &brvbar; or &brkbar;“` § &#167; &sect; 分节号Section sign ¨ &#168; &uml; or ¨“` © &#169; &copy; 版权标志Copyright ª &#170; &ordf; Feminine ordinal « &#171; &laquo; Left angle quote, guillemet left ¬ “`¬ ¬ Not sign “““ &#173; &shy; Soft hyphen ® &#174; &reg; 注册商标标志Registered trademark ¯ &#175; &macr; or &hibar;“` ° &#176; &deg; 度数标志Degree sign ± &#177; &plusmn; 加或减Plus or minus ² &#178; &sup2; 上标2 Superscript two ³ &#179; &sup3; 上标3 Superscript three ´ &#180; &acute; 尖重音符Acute accent µ &#181; &micro; Micro sign &#182; &para; Paragraph sign · &#183; &middot; Middle dot ¸ &#184; &cedil; Cedilla ¹ &#185; &sup1; 上标1 Superscript one º &#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; Rechte geschweifte Klammer 🎜~🎜🎜🎜<code>~🎜🎜🎜Tilde🎜🎜<tr>🎜 <code>— 🎜🎜🎜<code>🎜🎜🎜Unbenutzt🎜🎜<tr>🎜🎜🎜<code>  🎜🎜🎜<code>¡ ¡🎜🎜🎜Umgekehrter Ausruf🎜🎜<tr>🎜<code>¢🎜🎜🎜<code>¢ tr>🎜<code>£🎜🎜🎜<code> £ 🎜Allgemeines Währungszeichen🎜🎜<code>¥🎜🎜🎜<code>¥ ¦🎜🎜🎜oder &brkbar;“`🎜🎜<tr>🎜§🎜🎜🎜<code>§ 🎜<code>¨🎜🎜🎜<code>¨ ¨🎜🎜🎜oder ¨“`🎜<tr>🎜<code>©🎜🎜🎜 <code>© LogoCopyright🎜🎜<tr>🎜<code>ª🎜🎜🎜<code>ª &shy ;🎜🎜🎜Weicher Bindestrich🎜🎜<tr>🎜<code>®🎜🎜🎜<code>®code>¯ ¯🎜🎜🎜oder &hibar;“`🎜🎜<tr>🎜<code>°🎜🎜🎜<code>° °🎜🎜🎜 Code>±🎜🎜🎜<code>± ±🎜🎜🎜Plus oder Minus🎜🎜<tr>🎜<code>²🎜🎜🎜<code>² 🎜Hochgestellte Zwei🎜🎜<tr>🎜 <code>³🎜🎜🎜<code>³ code>´ 🎜🎜Mikrozeichen🎜🎜<tr>🎜<code>¶🎜🎜🎜<code>¶ ¶🎜🎜🎜Absatzzeichen🎜🎜<tr>🎜<code>·🎜🎜🎜<code>· ; tr>🎜<code>¸🎜🎜🎜<code>¸ 1 Hochgestelltes 🎜🎜<tr>🎜<code>º🎜🎜🎜<code>º guillemet right🎜🎜<tr>🎜<code>¼🎜🎜🎜<code>¼ ¼🎜🎜🎜Bruch ein Viertel🎜🎜<tr>🎜 <code>½🎜🎜🎜<code>½ ; ½ 🎜🎘 🎜<code>Á 🎜🎜🎜Großbuchstaben A, Zirkumflex🎜🎜<code>Ã🎜🎜🎜<code>Ä ?esis / umlaut🎜🎜<tr>🎜<code>Å🎜🎜🎜<code>Å Å🎜🎜🎜Capital A, ring🎜🎜 Ç🎜🎜Capital AE ligatur🎜🎜<tr>🎜<code>Ç🎜🎜🎜<code>Ç 🎜Capital C, cedilla🎜🎜<tr>🎜<code>È🎜🎜🎜<code>È É🎜🎜🎜Capital E, akuter Akzent🎜🎜<tr>🎜<code>Ê🎜🎜🎜<code>Ê <code>Ë🎜🎜🎜<code>Ë Ë🎜🎜🎜Großbuchstaben E, di?esis / Umlaut🎜 🎜<tr> <td> <code>ÌÌ &#204; &Igrave; Capital I, grave accent Í &#205; &Iacute; Capital I, acute accent Î &#206; &Icirc; Capital I, circumflex Ï &#207; &Iuml; Capital I, di?esis / umlaut Ð &#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 / umlaut Ý &#221; &Yacute; Capital Y, acute accent Þ &#222; &THORN; Capital Thorn, Icelandic ß &#223; &szlig; Small sharp s, German sz à &#224; &agrave; Small a, grave accent á &#225; &aacute; Small a, acute accent â &#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 ì &#236; &igrave; Small i, grave accent í &#237; &iacute; Small i, acute accent î &#238; &icirc; Small i, circumflex ï &#239; &iuml; Small i, di?esis / umlaut ð &#240; &eth; Small eth, Icelandic ñ &#241; &ntilde; Small n, tilde ò &#242; &ograve; Small o, grave accent ó &#243; &oacute; Small o, acute accent ô &#244; &ocirc; Small o, circumflex õ &#245; &otilde; Small o, tilde ö &#246; &ouml; Small o, di?esis / umlaut ÷ &#247; &divide; 除号Division sign ø &#248; &oslash; Small o, slash ù &#249; &ugrave; Ì ÌGroßbuchstabe I, ernster Akzent🎜🎜🎜Í🎜🎜Í Í🎜🎜Großbuchstabe I, akuter Akzent🎜🎜🎜🎜Î🎜🎜Î Î🎜🎜Großbuchstabe I, Zirkumflex🎜🎜🎜🎜Ï🎜🎜Ï Ï🎜🎜Capital I, di?esis / umlaut🎜🎜🎜🎜Ð🎜🎜Ð Ð🎜🎜Capital Eth, Isländisch🎜🎜🎜🎜Ñ🎜🎜Ñ Ñ🎜🎜Großes N, Tilde🎜🎜🎜🎜Ò🎜🎜Ò Ò🎜🎜Großes O, ernster Akzent🎜🎜🎜🎜Ó🎜🎜Ó Ó🎜🎜Großes O, akuter Akzent🎜🎜🎜🎜Ô🎜🎜Ô Ô🎜🎜Großes O, Zirkumflex🎜🎜🎜🎜Õ🎜🎜Õ Õ🎜🎜Großes O, Tilde🎜🎜🎜🎜Ö🎜🎜Ö Ö🎜🎜Großes O, di?esis / Umlaut🎜🎜🎜🎜×🎜🎜× ×🎜🎜乘号Multiplikationszeichen🎜🎜🎜🎜Ø🎜🎜Ø Ø🎜🎜Großes O, Schrägstrich🎜🎜🎜🎜Ù🎜🎜Ù Ù🎜🎜Großes U, ernster Akzent🎜🎜🎜🎜Ú🎜🎜Ú Ú🎜🎜Großes U, akuter Akzent🎜🎜🎜🎜Û🎜🎜Û Û🎜🎜Großes U, Zirkumflex🎜🎜🎜🎜Ü🎜🎜Ü Ü🎜🎜Capital U, di?esis / umlaut🎜🎜🎜🎜Ý🎜🎜Ý Ý🎜🎜Großes Y, akuter Akzent🎜🎜🎜🎜Þ🎜🎜Þ Þ🎜🎜Hauptstadt Thorn, Isländisch🎜🎜🎜🎜ß🎜🎜ß ß🎜🎜Kleines scharfes s, deutsch sz🎜🎜🎜🎜à🎜🎜à à🎜🎜Kleines a, ernster Akzent🎜🎜🎜🎜á🎜🎜á á🎜🎜Kleines a, akuter Akzent🎜🎜🎜🎜â🎜🎜â â🎜🎜Kleines a, Zirkumflex🎜🎜🎜🎜ã🎜🎜ã ã🎜🎜Kleines a, Tilde🎜🎜🎜🎜ä🎜🎜ä ä🎜🎜Kleines a, di?esis / Umlaut🎜🎜🎜🎜å🎜🎜å å🎜🎜Kleines a, Ring🎜🎜🎜🎜æ🎜🎜æ æ🎜🎜Kleine ae-Ligatur🎜🎜🎜🎜ç🎜🎜ç ç🎜🎜Kleines c, Cedilla🎜🎜🎜🎜è🎜🎜è è🎜🎜Kleines e, ernster Akzent🎜🎜🎜🎜é🎜🎜é é🎜🎜Kleines e, akuter Akzent🎜🎜🎜🎜ê🎜🎜ê ê🎜🎜Kleines e, Zirkumflex🎜🎜🎜🎜ë🎜🎜ë ë🎜🎜Kleines e, di?esis / Umlaut🎜🎜🎜🎜ì🎜🎜ì ì🎜🎜Kleines i, ernster Akzent🎜🎜🎜🎜í🎜🎜í í🎜🎜Kleines i, akuter Akzent🎜🎜🎜🎜î🎜🎜î î🎜🎜Kleines i, Zirkumflex🎜🎜🎜🎜ï🎜🎜ï ï🎜🎜Kleines i, di?esis / Umlaut🎜🎜🎜🎜ð🎜🎜ð ð🎜🎜Kleines eth, Isländisch🎜🎜🎜🎜ñ🎜🎜ñ ñ🎜🎜Kleines n, Tilde🎜🎜🎜🎜ò🎜🎜ò ò🎜🎜Kleines o, ernster Akzent🎜🎜🎜🎜ó🎜🎜ó ó🎜🎜Kleines o, akuter Akzent🎜🎜🎜🎜ô🎜🎜ô ô🎜🎜Kleines o, Zirkumflex🎜🎜🎜🎜õ🎜🎜õ õ🎜🎜Kleines o, Tilde🎜🎜🎜🎜ö🎜🎜ö ö🎜🎜Kleines o, di?esis / Umlaut🎜🎜🎜🎜÷🎜🎜÷ ÷🎜🎜除号Divisionszeichen🎜🎜🎜🎜ø🎜🎜ø ø🎜🎜Kleines o, Schrägstrich🎜🎜🎜🎜ù🎜🎜ù ù🎜🎜Klein, ernster Akzent🎜🎜 úú &#250; &uacute; Small u, acute accent û &#251; &ucirc; Small u, circumflex ü &#252; &uuml; Small u, di?esis / umlaut ý &#253; &yacute; Small y, acute accent þ &#254; &thorn; Small thorn, Icelandic ÿ &#255; &yuml; ú úKleines u, akuter Akzent

û& #251; û

🎜Klein u, Zirkumflex🎜🎜🎜🎜ü🎜🎜ü / umlaut🎜🎜🎜🎜<code>ý 🎜🎜ý ý🎜🎜Kleiner, scharfer Akzent🎜🎜🎜🎜🎜🎜 þ þ🎜🎜 Kleiner Dorn, Isländisch🎜🎜🎜🎜ÿ🎜🎜ÿ ÿ🎜🎜Kleines y , Umlaut🎜🎜🎜🎜🎜Für weitere Programmierkenntnisse bitte Besuchen Sie: 🎜Programmiervideo🎜! ! 🎜

Das obige ist der detaillierte Inhalt vonSo zeigen Sie spezielle Symbole in HTML5 an. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn