Some characters have special meaning in HTML, like the less than sign <it means the beginning of HTML Tag, and this is not less than the number displayed on the page to see where we end up. What if we want to display a less than sign in page, how to do it?
This comes to HTML character entities (HTML Character Entities) a.
A character entity (Character Entity) is divided into three parts: The first part is an ampersand, the English called ampersand; the second part is the entity (Entity) name or # plus entity (Entity) number; the third part is a semicolon.
For example, to display less than the number, you can write <or <.
Benefits Entity (Entity) name is easier to understand, to see lt, probably guess is less than the meaning, but the disadvantage is that not all browsers support the latest Entity name. The entity (Entity) number, various browsers can handle.
Create a front-end learning qun438905713, most in the group are zero-based learners, we help each other, answer each other, and also to prepare a lot of learning materials, welcomed the zero-based junior partner to the exchange.
Note: Entity is case-sensitive.
How to display a space
under normally circumstances, HTML will automatically cut off the excess space. No matter how much space you add, are seen as a space. For example, you add 10 spaces between words, HTML truncates nine spaces, but one. In order to increase the space on the page, you can use indicates a space.
The most common character entity (Character Entities)
Other commonly used character entities (Character Entities)
Display result Description Entity Name Entity Number
More character entities (Character Entities)
more character entities (Character Entities) See ISO Latin-1 character set.