Are you still using small icons for web page beautification?

Source: Internet
Author: User

& 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 ,&Larr; 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.