Home > Web Front-end > HTML Tutorial > The most commonly used HTML escape characters Escape Sequence_HTML/Xhtml_Web page production

The most commonly used HTML escape characters Escape Sequence_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:41:04
Original
2561 people have browsed it

, &, etc. in HTML have special meanings ( is used for link tags, & is used for escaping) and cannot be used directly. These symbols are not displayed in the web page we finally see, so what should we do if we want to display these symbols in the web page?
This is about HTML escape string (Escape Sequence).
Escape Sequence is also called Character Entity. In HTML, there are two reasons for defining escaped strings: The first reason is that symbols such as "" have been used to represent HTML tags, so they cannot be used directly as symbols in text. In order to use these symbols in HTML documents, you need to define their escape strings. When the interpreter encounters such a string, it interprets it as a real character. When entering escape strings, strictly follow the rules for upper and lower case letters. The second reason is that some characters are not defined in the ASCII character set, so they need to be represented by escaped strings.
The Escape Sequence, that is, the character entity (Character Entity) is divided into three parts: the first part is an & symbol, called ampersand in English; the second part is the name of the entity (Entity) or # plus entity ( Entity) number; the third part is a semicolon.
For example, to display the less than sign (

> & & symbol & & " Double quotes " " © Copyright © © ® Registered trademark ® ® ™ Trademark (USA) ™ ™ × Multiply sign × × ÷ Division sign ÷ ÷
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template