& Nbsp; & copy; & lt; & gt; you must be familiar with these characters. What about the following? & Rsaquo; & raquo; & laquo; if you still know, what about these? & #9742; & #9760; & #9998; & #10003;
Let's take a look at their true colors on the web page.& Nbsp; & copy; & lt; <& gt; & rsaquo; & raquo; & laquo; & #9742; & #9760; & #9998; & #10003; spaces <> ›»«✎Bytes
Do you feel dizzy when you see this? I don't know where I am. You will understand it by posting a few pictures below.
You did not find it. There are many small icons in the text in the figure. Do you want to improve the appearance of the interface? Yes, the rational use of these small icons can make it easy to guide readers and increase the overall color of the web page from the details. Why not? Is it necessary to collect small icons like this? The answer is no. Those tasks are only needed by the artist. We are always relatively lazy, so we will...
Today's leading role debuted →HTML symbol entities.So why do we need to use characters instead of small icons?
1. It is faster than the icon loading speed;
2. Its size can change with the font size;
3. It can change the color at will.
Use & #9742; to make a demo,
Normal situation:
<P> normal phone number icon: & #9742; </P>
Normal phone number icon:
Change font size:
<P style = "font-size: 26px;"> large phone number icon: & #9742; </P>
Large phone icon:
Change color:
<P style = "color: red; font-size: 26px;"> large red icon: & amp; #9742; </P>
Large red icon:
Is it easy to use? But someone may ask, "How do I remember the corresponding code with so many characters ?" If you observe carefully, you may find that basically every character has a corresponding name, and it is also an English abbreviation, for example, & copy; is the abbreviation of copyright ,↞ is the abbreviation of left arrow. Is it easy to remember? If you are still lazy, you can use it whenever, or when you come here (w3schools) or here (character entity reference HTML 4). It is very detailed and authoritative.
Reference:
- Http://www.webdesignerwall.com/tutorials/using-html-symbol-entities/
- Http://www.bigbaer.com/reference/character_entity_reference.htm
- Http://www.w3schools.com/tags/ref_symbols.asp