In HTML, <, >, &, etc. have special meanings (<, >, for link tags, & for escape), and cannot be used directly. These symbols are not displayed on the web page we finally see. What should we do if we want to display these symbols on the web page? This is where the HTML escape sequence comes in. Escape Sequence is also called Character Entity. In HTML, escape strings are defined for two reasons: The first reason is that symbols such as "<" and ">" are already 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 its escape string. When the interpreter encounters this type of string it interprets it as real characters. When entering an escape string, 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 and therefore need to be represented using escape strings. The escape sequence, or character entity, is divided into three parts: the first part is an ampersand; the second part is the entity name or # plus the entity number; the third part is a semicolon. For example, to display a less than sign (<), you can write < or <. The advantage of using entity names is that they are easier to understand. When you see lt, you can probably guess that it means less than. However, the disadvantage is that not all browsers support the latest entity names. The entity number can be processed by various browsers. Tip: Entity names are case sensitive. Note: The same symbol can be referenced in two ways: "entity name" and "entity number". The advantage of "entity name" is that it is easy to remember, but there is no guarantee that all browsers can recognize it smoothly. "Entity number" does not have this concern, but it is really inconvenient to remember. The most commonly used character entities Character EntitiesDisplay DescriptionEntity NameEntity Number
|
<<: CSS shadow animation optimization tips
>>: Do you know why vue data is a function?
echarts word cloud is an extension of echarts htt...
In order to efficiently meet requirements and avo...
To improve processing power and concurrency, Web ...
In more and more websites, the use of XHTML is rep...
Below are some common parameters of /etc/my.cnf o...
1. Use version vite:2.0 ant-design-vue: 2.0.0-rc....
Table of contents Overview Defining methods on an...
<br />Most of the time when we talk about na...
Table of contents Preface 1. Routing lazy loading...
Table of contents 1. Introduction to the Implemen...
First, let me show you the finished effect Main i...
This article example shares the specific code for...
1. Download the mysql-5.7.17-winx64.zip installat...
Neo4j (one of the Nosql) is a high-performance gr...
Prepare a CentOS6 installation disk (any version)...