Home > Article > Web Front-end > What is the html escape character table?
HTML escape characters are a set of special characters defined by HTML that are used to display or encode special characters on web pages.
HTML escape characters are an encoding used to convert standard ASCII characters into characters allowed by HTML formatting. HTML escape characters can be used to display special characters in text in a safe way on web pages. These characters include the greater than sign, the less than sign, quotation marks, single quotes, and backslashes, etc.
The following is an HTML escape character table:
Character | Name | Code |
---|---|---|
和 | #& | |
Less than sign | < | |
Greater than sign | > | |
Quotation marks | " | ##' |
' | ® | |
® | ##© | |
© | ™ | |
™ | ##º | Degree symbol |
± | Positive and negative sign symbol | |
µ | Micro symbol | |
÷ | Division sign | |
× | Multiply sign | |
• | Punctuation | |
##§ | Paragraph mark | |
¶ | Paragraph symbol | |
##¥ | Yen symbol | ¥ |
$ | dollar sign | $ |
£ | pound sign | £ |
€ | Euro symbol | € |
¢ | Central symbol | ¢ |
¤ | Currency symbol | ¤ |
° | Angle symbol | ° |
• | Solid dot | • |
##… | Omitted symbols | … |
— | dash | — |
– | Dash | – |
« | Left double horn | « |
» | Right double horn | » |
When writing HTML code, if you want to use special characters, you can use the codes provided in the HTML escape character table instead. For example, if you want to display the "&" symbol on a web page, you can use "&" instead. Using escape characters ensures that HTML will not interpret these special characters as HTML code when displayed. | In short, the HTML escape character table is a very useful tool that can make web designers easier and safer when writing HTML code. If you want to display special characters on a web page, using this form can save you a lot of time and trouble. However, it should be noted that each character needs to use the correct encoding format, otherwise it may cause problems with the display of the web page. |
The above is the detailed content of What is the html escape character table?. For more information, please follow other related articles on the PHP Chinese website!