Common special characters in HTML

Source: Internet
Author: User
Tags number sign

Reference address: http://blog.myspace.cn/e/400535803.htm

Some characters have special meanings in HTML. For example, a character smaller than sign <indicates the beginning of an HTML Tag. This character smaller than sign is not displayed on the webpage we finally see. What should we do if we want to display a nickname in the webpage?

This is about html character entities.

Composition

A character entity is divided into three parts: The first part is an & symbol, the English name is ampersand; the second part is the entity name or # With the entity number; the third part is a semicolon.

For example, to display a smaller sign, you can write & lt; or & #60 ;.

The advantage of using an entity name is that it is easy to understand. When you look at it, you can probably guess what it means to be less, however, not all browsers support the latest Entity names. Entity numbers can be processed by various browsers.

Note: entity is case sensitive.

How to display Spaces

Generally, HTML automatically removes unnecessary spaces. No matter how many spaces you add, it is regarded as a space. For example, if you add 10 spaces between two words, HTML removes 9 spaces and retains only one space. To add spaces to a webpage, you can use & nbsp; to indicate spaces.

Character entities)

 

Display result description entity nameentity number

Display a Space & nbsp; & #160;
<Less than & lt; & #60;
> Greater than & gt; & #62;
& Symbol & amp; & #38;
"Double quotation marks & quot; & #34;

 

Character entities)

Display result description entity nameentity number
Copyright & copy; & #169;
Registered Trademark & reg; & #174;
× Multiplication number & times; & #215;
Division Number & divide; & #247;

ISO Latin-1 character set:

 

Description of Entity Names in decimal character numbers --- & #00; --- unused not used --- & #01; --- unused not used --- & #02; --- unused not used --- & #03; --- unused not used --- & #04; --- unused not used --- & #05; --- unused not used --- & #06; --- unused not used --- & #07; --- unused not used --- & #08; --- unused not used --- & #09; --- tab horizontal tab --- & #10; --- line feed --- & #11; --- unused not used --- & #12; --- unused not used --- & #13; --- press ENTER Carriage Return --- & #14; --- unused not used --- & #15; --- unused not used --- & #16; --- unused not used --- & #17; --- unused not used --- & #18; --- Unused not used --- & #19; --- unused not used --- & #20; --- unused not used --- & #21; --- unused not used --- & #22; --- unused not used --- & #23; --- unused not used --- & #24; --- unused not used --- & #25; --- unused not used --- & #26; --- unused not used --- & #27; --- unused not used --- & #28; --- unused not used --- & #29; --- unused not used --- & #30; --- unused not used --- & #31; --- unused not used & #32; --- space! & #33; --- exclamation mark "& #34; & quot; double quotation mark # & #35; --- Digit Sign number sign $ & #36; --- dollar sign % & #37; --- percent sign & #38; & amp; ampersand "& #39; --- single quotation mark apostrophe (& #40; --- left parenthesis on the left of the parentheses) & #41; --- Right parenthesis * & #42; --- asterisk + & #43; --- plus sign, & #44; --- comma-& #45; --- font size hyphen. & amp; #46; --- period (fullstop)/& amp; #47; --- slash solidus (slash) 0 & amp; #48; --- number 0 digit 01 & amp; #49; --- number 1 digit 12 & #50; --- Number 2 digit 23 & #51; --- number 3 digit 34 & #52; --- number 4 digit 45 & #53; --- digit 5 digit 56 & #54; --- digit 6 digit 67 & #55; --- digit 7 digit 78 & #56; --- digit 8 digit 89 & #57; --- number 9 digit 9: & #58; --- colon; & #59; --- semicolon <& #60; & lt; less than = & #61; --- equal to the equals sign >&# 62; & gt; greater? & #63; --- question mark @ & #64; --- Commercial ata & #65; --- capital a capital AB & #66; --- capital B Capital BC & #67; --- capital C capital CD & #68; --- capital D capital de & #69; --- capital e Capital EF & #70; --- capital F capital FG & #71; --- capital g gh & #72; --- capital H capital Hi & #73; --- capital J capital ij & #74; --- capital K capital JK & #75; --- capital L Kl & #76; --- capital K capital lm & #77; --- Capital M capital Mn & #78; --- capital N capital no & #79; --- capital O op & #80; --- capital P capital PQ & #8 1; --- capital Q capital QR & #82; --- Capital R capital RS & #83; --- capital s capital st & #84; --- capital T capital tu & #85; --- capital U capital UV & #86; --- capital V Capital VW & #87; --- capital W capital wx & #88; --- capital X capital XY & #89; --- capital Y capital YZ & #90; --- capital z capital Z [& #91; --- left square bracket \ & #92; --- backslash reverse solidus (backslash)] & #93; --- right square bracket ^ & #94; --- caret _ & #95; --- underline horizontal bar (underscore) '& #96; --- acute AC CENTA & #97; --- lower case a small AB & #98; --- lower case B Small BC & #99; --- lower case C small CD & #100; --- lower case D small de & #101; --- lower case e small EF & #102; --- lower case F small FG & #103; --- lower case G small GH & #104; --- lower case h small hi & #105; --- lower case I small ij & #106; --- lower case J small JK & #107; --- lower case K small Kl & #108; --- lower case l small lm & #109; --- lower case M small Mn & #110; --- lower case n small no & #111; --- lower case o Small op & #112; --- lower case P small PQ & #113; --- lower case Q small QR & #114; --- lower case R small RS & #115; --- lower case s small s T & #116; --- lower case T small tu & #117; --- lower case u small UV & #118; --- lower case v small VW & #119; --- lower case W small wx & #120; --- lower case x small XY & #121; --- lower case y small YZ & #122; --- lower case Z small Z; --- left curly brace on the left of braces | & #124; --- vertical bar} & #125; --- Right curly brace on the Right of braces ~ & #126; --- Tilde --- & #127; --- unused not used & #160; & nbsp; space nonbreaking space? & #161; & iexcl; inverted exclamation currency & #162; & cent; currency cent sign percent & #163; & pound; pound sign pound sterling percent & #164; & Curren; general currency sign $ & #165; & yen; yen sign | & #166; & brvbar; or & brkbar; broken vertical line broken vertical bar § & #167; & sect; Section sign? & #168; & UML; or & die; audio changing symbol umlaut? & #169; & copy; Copyright logo copyrighta & #170; & ordf; feminine ordinal? & #171; & laquo; left angle quote, guillemet left? & #172; & NOTnot sign? & #173; & shy; soft hyphen? & #174; & reg; registered trademark sign registered trademark & #175; & macr; or & hibar; long-tone symbol macron accent ° & #176; & deg; level sign degree sign ± & #177; & plusmn; plus or minus plus or minus2 & #178; & sup2; superscript two3 & #179; & sup3; superscript three '& #180; & acute; acute accent μ & #181; & micro; micro sign? & #182; & para; paragraph sign · & #183; & middot; middle dot? & #184; & cedil; cedilla1 & #185; & sup1; superscript 1 oneo & #186; & ORDM; masculine ordinal? & #187; & raquo; right angle quote, guillemet right? & #188; & frac14; 1/4 fraction one-fourth? & #189; & frac12; 1/2 fraction one-half? & #190; & frac34; 3/4 fraction three-fourths? & #191; & iquest; inverted question mark à & #192; & agrave; capital A, grave accent á & #193; & aacute; capital A, acute accent? & #194; & acirc; capital A, circumflex? & #195; & atilde; capital A, Tilde? & #196; & auml; capital A, Di? ESIS/umlaut? & #197; & aring; capital A, ring? & #198; & aelig; capital AE ligature? & #199; & ccedil; capital C, cedilla & #200; & egrave; Capital E, grave accent é & #201; & eacute; Capital E, acute accent region & #202; & ecirc; Capital E, circumflex? & #203; & euml; Capital E, Di? ESIS/umlaut tables & #204; & igrave; capital I, grave accent í & #205; & Iacute; capital I, acute accent? & #206; & icirc; capital I, circumflex? & #207; & iuml; capital I, Di? ESIS/umlautd & #208; & ETH; capital Eth, Icelandic? & #209; & ntilde; capital N, Tilde Limit & #210; & ograve; capital O, grave accent ó & #211; & oacute; capital O, acute accent? & #212; & ocirc; capital O, circumflex? & #213; & otilde; capital O, Tilde? & #214; & ouml; capital O, Di? ESIS/umlaut × & #215; & times; multiplication number multiply sign? & #216; & Oslash; capital O, slash bandwidth & #217; & ugrave; capital U, grave accent ú&# 218; & uacute; capital U, acute accent? & #219; & ucirc; capital U, circumflex U & #220; & uuml; capital U, Di? ESIS/umlauty & #221; & yacute; capital Y, acute accentt & #222; & thorn; capital Thorn, Icelandic? & #223; & szlig; small sharp S, German SZ à & #224; & agrave; small A, grave accent á & #225; & aacute; small, acute accenta & #226; & acirc; small A, circumflex? & #227; & atilde; small A, Tilde? & #228; & auml; small A, Di? ESIS/umlaut? & #229; & aring; small A, ring? & #230; & aelig; small AE ligature? & #231; & ccedil; small C, cedilla & #232; & egrave; small e, grave accent é & #233; & eacute; small e, acute accent keys & #234; & ecirc; small e, circumflex? & #235; & euml; small e, Di? ESIS/umlaut Clusters & #236; & igrave; small I, grave accent í & #237; & Iacute; small I, acute accent? & #238; & icirc; small I, circumflex? & #239; & iuml; small I, Di? ESIS/umlaute & #240; & ETH; small Eth, Icelandic? & #241; & ntilde; small N, Tilde average & #242; & ograve; small O, grave accent ó & #243; & oacute; small O, acute accent? & #244; & ocirc; small O, circumflex? & #245; & otilde; small O, Tilde? & #246; & ouml; small O, Di? ESIS/umlaut Labels & #247; & divide; division number division sign? & #248; & Oslash; small O, slash success & #249; & ugrave; small U, grave accent ú&# 250; & uacute; small U, acute accent? & #251; & ucirc; small U, circumflex U & #252; & uuml; small U, Di? ESIS/umlauty & #253; & yacute; small y, acute accentt & #254; & thorn; small thorn, Icelandic? & #255; & yuml; small y, umlaut

Symbols, mathematical symbols, and Greek letters

? & Fnof; alias & Alpha; alias & Beta; gamma & gamma; △& delta;
Role & Epsilon; Role & ETA; Role & Theta; Role & iota;
Role & Kappa; Lambda & Lambda; Role & mu; Role & Nu; Role & XI;
Ο & Omicron; Middle & PI; Middle & pression; Σ & sigma; Middle & Tau;
Φ & upsilon; Phi & Phi; Middle & Chi; Middle & PSI; Ω & omega;
α & Alpha; β & Beta; gamma & gamma; Delta & delta; ε & Epsilon;
|;
Lambda;
;? & Sigmaf; σ & sigma; Tau & Tau;
υ & upsilon; Phi & Phi; Chi; PSI & PSI; ω & omega;
? & Thetasym ;? & Upsih ;? & PIV ;? & Bull ;... & Hellip;
'& Prime; "& prime; ~ & oline ;? & Frasl ;? & Weierp;
? & Image ;? & Real ;? & Trade ;? & Alefsym; Role & Larr;
Role & uarr; → & rarr; Role & Darr ;? & Harr ;? & CRARR;
? & Amp; Larr ;? & Uarr ;? & Rarr ;? & Darr ;? & Harr;
? & Forall ;? & Part ;? & Exist ;? & Amp; empty ;? & Nabla;
& Isin ;? & Notin ;? & Ni; Province & prod; Σ & sum;
? & Minus ;? & Lowast; √ & Radic; interval & prop; ∞ & infin;
Duration & Ang; duration & and; duration & or; duration & Cap; duration & Cup;
Counter & int; counter & there4 ;~ & SIM ;? & Amp; Cong; ≈ & amp; asymp;
;? & Sub;
? & Sup ;? & Nsub ;? & Sube ;? & Supe ;? & Oplus;
? & Otimes; Period & perp ;? & Sdot ;? & Lceil ;? & Rceil;
? & Lfloor ;? & Rfloor ;? & Lang ;? & Rang ;? & Loz;
? & Spades ;? & Clubs ;? & Hearts ;? & Diams;

Markup-significant and internationalization characters

"& Quot; & amp; <& lt;> & gt ;? & Oelig;
? & Oelig ;? & Amp; scaron ;? & Amp; scaron ;? & Yuml ;? & Amp; CIRC;
? & Tilde ;? & ENSP ;? & Amp; emsp ;? & Thinsp ;? & Zwnj;
? & Zwj ;? & Lrm ;? & Rlm;-& ndash;-& mdash;
'& Lsquo;' & rsquo ;? & Sbquo; "& ldquo;" & rdquo;
? & Bdquo ;? & Dagger ;? & Dagger; ‰ & permil ;? & Lsaquo;
? & Rsaquo ;? /Strong> & euro;

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.