Special characters in Web pages (HTML)

Source: Internet
Author: User
Tags reference
Web

In general, in HTML, a special character has two representations, one called a digital reference, and one called an entity reference.

The so-called digital reference, is to use numbers to represent the special characters in the document, usually by the prefix "&#", plus the value, plus the suffix ";" and composition, it can take the following two ways. & #D; where d is a decimal value

Here are some examples of numeric references for special characters:

© corresponds to special character "©"

® corresponds to special character "®"

The so-called entity reference, in fact, is to use meaningful names to represent special characters, usually by the prefix "&", plus the corresponding name of the character, plus the suffix ";" And it is expressed in the following ways:

&name; Where name is a name to represent the character, it is case-sensitive. For example, you can use "©" to represent the copyright symbol "©", with "®" to represent the registered trademark symbol "®", it is obvious that this is much easier to remember than the number.

Unfortunately, not all browsers are able to correctly recognize special characters that use the entity reference method, but they can recognize special characters that use digital references and, if possible, use a digital reference for some particularly uncommon characters.

Of course, for those common special characters, the use of their entity reference is safe, we in practical applications, as long as the memory of these common special characters of the entity reference is enough to use.

The following lists most of them (collected from the Web):

Character

Digital reference

Entity reference

Describe

" " " Quotation mark.
& & & Ampersand
< < < Less than
> > > Greater than
Blank Non-breaking Space
¡ ¡ ¡ Inverted exclamation
¢ ¢ ¢ Cent Sign
£ £ £ Pound Sterling
¤ ¤ ¤ General Currency Sign
¥ ¥ ¥ Yen Sign
¦ ¦ ¦ Broken vertical Bar
§ § § Section Sign
¨ ¨ ¨ Diæresis/umlaut
© © © Copyright
ª ª ª Feminine ordinal
« « « Left Angle Quote
¬ ¬ ¬ Not sign
­ ­ &sny; Soft Hyphen
® ® ® Registered Trademark
¯ ¯ ¯ Macron Accent
° ° ° Degree Sign
± ± ± Plus or minus
² ² ² Superscript two
³ ³ ³ Superscript three
´ ´ ´ Acute accent
µ µ µ Micro Sign
Paragraph Sign
· · · Middle Dot
¸ ¸ ¸ Cedilla
¹ ¹ &supl; Superscript One
º º º Masculine ordinal
» » » Right Angle Quote
¼ ¼ ¼ Fraction one quarter
½ C ½ Fraction one half
¾ ¾ ¾ Fraction three-quarters
À À ¿ Inverted question mark.
À À À Capital A, grave accent
Á Á Á Capital A, acute accent
   Capital A, circumflex
Coal tar Coal tar Coal tar Capital A, Tilde
Ä Ä Ä Diæresis/umlau
Å Å Å Capital A, the ring
Æ Æ Æ Capital AE, Ligature
C C C Capital C, Cedilla
È È È Capital E, grave accent
E E E Capital E, acute accent
Ê Ê Ê Capital E, circumflex
E E E Diæresis/umlau
ì ì ì Capital I, grave accent
Í Í Í Capital I, acute accent
Î Î Î Capital I, circumflex
Grist Grist &Imul; Diæresis/umlau
D D D Capital ETH, Icelandic
N N N Capital N, Tilde
Driving Driving Driving Capital O, grave accent
Æ Æ Æ Capital O, acute accent
Workô Workô Workô Capital O, circumflex
Õ Õ Õ Capital O, Tilde
O O O Diæresis/umlau
X X X Multiplication sign
O O O Capital O, Slash
Ù Ù Ù Capital U, grave accent
Ú Ú Ú Capital U, acute accent
Û Û Û Capital U, circumflex
U U U Diæresis/umlau
Ý Ý Ý Capital Y, acute accent
Þ Þ Þ Capital Thorn,icelandic,
ß ß ß German sz
à à à Small A, grave accent
á á á Small A, acute accent
   Small A, circumflex
Coal tar Coal tar Coal tar Small A, tilde
Ä Ä Ä Diæresis/umlau
Å Å Å Small A, ring
Æ Æ Æ Small AE Ligature
C C C Small C, cedilla
È È È Small E, grave accent
E E E Small E, acute accent
Ê Ê Ê Small E, circumflex
E E E Diæresis/umlau
ì ì ì Small I, grave accent
í í í Small I, acute accent
Î Î Î Small I, circumflex
Grist Grist Grist Diæresis/umlau
D D D Small ETH, Icelandic
N N N Small N, Tilde
Driving Driving Driving Small O, grave accent
Æ Æ Æ Small O, acute accent
Workô Workô Workô Small O, circumflex
Õ Õ Õ Small O, tilde
O O O Diæresis/umlau
÷ ÷ ÷ Division sign,
O O O Small O, Slash
Ù Ù Ù Small u, grave accent
Ú Ú Ú Small u, acute accent
Û Û Û Small u, circumflex
U U U Diæresis/umlau
Ý Ý Ý Small y, acute accetn
Þ Þ Þ Small Thorn, Icelandic
Y Y Y Diæresis/umlaut






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.