". The browser will mistake them for tags; in this case, you can use the character entities "<" and ">" to display them."/> ". The browser will mistake them for tags; in this case, you can use the character entities "<" and ">" to display them.">

Home  >  Article  >  Web Front-end  >  How to display special symbols in HTML5

How to display special symbols in HTML5

青灯夜游
青灯夜游Original
2021-03-08 11:34:507916browse

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

How to display special symbols in HTML5

本教程操作环境: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 V ##V Capital V Capital V ##WW Capital W Capital W XX Capital X Capital X YY Capital Y Capital Y ##Z ## Z Capital Z Capital Z [ [ Left square bracket \ \ BackslashReverse solidus (backslash) ##] ##] Right square bracket ^ ^ Caret _ _ underscoreHorizontal bar (underscore ) ` ##` Acute accent a ##a lowercase a Small a b b lowercase b Small b c c lowercase c Small c d d small d Small d ##e ##e Lower case e Small e ff Lowercase f Small f g ##g lowercase g Small g h ##h small h Small h i ##i lowercase i Small i j j 小 j Small j ##k k lowercase k Small k ll 小l Small l ##m ##& #109; lowercase m Small m n n Lowercase n Small n o ##o Lowercase o Small o p p lowercase p Small p q ##q small q Small q r ##r small r Small r s s Lowercase s Small s t t small t Small t u u lowercase u Small u v v small v Small v ##w ##& #119; lowercase w Small w x x Lower case x Small x y ##y Lowercase y Small y zz lowercase z Small z ##{ { Left curly brace | | Vertical bar # #}} Right curly brace ##~ ~ Tilde —  Unused     Nonbreaking space ¡ ¡ ¡ Inverted exclamation ¢ ¢ ¢ Cent sign £ £ £ Pound sterling ¤ ¤ ¤ General currency sign ¥ # #¥ ¥ Yen mark ##¦ ##¦ ; ¦ or &brkbar;“` ##§ ##§ § ; Section sign ¨ ##¨ ¨ or ¨“` © © © Copyright logoCopyright ##ª ##ª ª Feminine ordinal « ##« « Left angle quote, guillemet left ¬ “`¬ ¬ Not sign “““ ­ ­ Soft hyphen ##® ® ® Registered trademark ##¯ ¯ ¯ or &hibar;“` ##° ° ° Degree sign ± ± ± Plus or minus ² ² ² Superscript two ³ 179; ³ Superscript three ´ ##´ ´ Acute accent µµ µ Micro sign ¶ ##¶ ¶ Paragraph sign · ##· · Middle dot ##¸ ¸ ¸ Cedilla ¹ ##¹ Superscript one º ##º º Masculine ordinal » » » Right angle quote, guillemet right ¼ ##¼ ¼ Fraction one-fourth ½ ½ ½ Fraction one-half ¾ ¾ ¾ Fraction three-fourths ¿ ¿ ¿ Inverted question mark ##À À À Capital A, grave accent##Á Á Á Capital A, acute accent ##   Capital A, circumflex ##à à à Capital A, tilde ##Ä 196; Ä Capital A, di?esis / umlaut Å & #197; Å Capital A, ring ##Æ ##Æ Æ Capital AE ligature Ç Ç Ç Capital C, cedilla ##È È È Capital E, grave accent É ##É É Capital E, acute accent##Ê ##Ê Ê Capital E, circumflex ##Ë Ë Ë Capital E, di?esis / umlaut Ì Ì Ì Capital I, grave accent Í Í Í Capital I, acute accent Î Î Î Capital I, circumflex Ï Ï Ï Capital I, di?esis / umlaut Ð Ð Ð Capital Eth, Icelandic Ñ Ñ Ñ Capital N, tilde Ò Ò Ò Capital O, grave accent Ó Ó Ó Capital O, acute accent Ô Ô Ô Capital O, circumflex Õ Õ Õ Capital O, tilde Ö Ö Ö Capital O, di?esis / umlaut × × × 乘号Multiply sign Ø Ø Ø Capital O, slash Ù Ù Ù Capital U, grave accent Ú Ú Ú Capital U, acute accent Û Û Û Capital U, circumflex Ü Ü Ü Capital U, di?esis / umlaut Ý Ý Ý Capital Y, acute accent Þ Þ Þ Capital Thorn, Icelandic ß ß ß Small sharp s, German sz à à à Small a, grave accent á á á Small a, acute accent â â â Small a, circumflex ã ã ã Small a, tilde ä ä ä Small a, di?esis / umlaut å å å Small a, ring æ æ æ Small ae ligature ç ç ç Small c, cedilla è è è Small e, grave accent é é é Small e, acute accent ê ê ê Small e, circumflex ë ë ë Small e, di?esis / umlaut ì ì ì Small i, grave accent í í í Small i, acute accent î î î Small i, circumflex ï ï ï Small i, di?esis / umlaut ð ð ð Small eth, Icelandic ñ ñ ñ Small n, tilde ò ò ò Small o, grave accent ó ó ó Small o, acute accent ô ô ô Small o, circumflex õ õ õ Small o, tilde ö ö ö Small o, di?esis / umlaut ÷ ÷ ÷ 除号Division sign ø ø ø Small o, slash ù ù ù Small u, grave accent ú ##ú ú Small u, acute accent û ##û û Small u, circumflex ##ü ü ü Small u, di?esis / umlaut ý ý ý Small y, acute accent þ þ Small thorn, Icelandic ÿ ##ÿ ÿ Small y, umlaut More Programming For related knowledge, please visit: programming video! !

The above is the detailed content of How to display special symbols in HTML5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn