HTML entity

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
(Redirected from HTML entities)
Jump to navigation Jump to search

About

An HTML entity is a combination of characters which will be displayed within an HTML browser as a single character. All HTML entities begin with "&" (ampersand) and end with ";" (semicolon). Many entities have mnemonic names (such as "&", which displays an ampersand); any possible character can be displayed as an entity by using the format "&#number;" where number is the output character's ASCII value in decimal.

see also: wikipedia:Percent-encoding

Reference

Questions

  • Does Google resolve html entities when indexing web pages? That is, if I spelled a word (e.g. "schmerglefrotz") entirely using html entities, would someone be able to find that page using google by typing "schmerglefrotz" (after the site had been spidered, of course)? (As a test, I will spell a completely different word using HTML entities, and try Googling it later: FRELGKLOTZ)
    • 2007-07-15 answer: Yes, it does find it (though it took several months at least before this page got indexed).
    • 2016-11-28 answer: Searching for the word in question no longer produces any results. Neither does searching for "schmerglefrotz".

Note

  • 2017-11-11 MediaWiki 1.28.0 apparently no longer supports the "&#d;" style of entity; you now have to use named entities.
  • 2020-05-23 This seems to have been fixed?

Entities by Number

  • 0-8 are not translated
  • 9 is probably TAB
  • 10 is probably LF
  • 13 is probably CR
  • 14-31 are not translated
  • 32 is a standard space
lower ASCII upper ASCII
! !
" "
# #
$ $
% %
& & & : &
' '
( (
) )
* *
+ +
, ,
- -
. .
/ /
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
: :
&#59; ;
&#60; <
&#61; =
&#62; >
&#63; ?
&#64; @
&#65; A
&#66; B
&#67; C
&#68; D
&#69; E
&#70; F
&#71; G
&#72; H
&#73; I
&#74; J
&#75; K
&#76; L
&#77; M
&#78; N
&#79; O
&#80; P
&#81; Q
&#82; R
&#83; S
&#84; T
&#85; U
&#86; V
&#87; W
&#88; X
&#89; Y
&#90; Z
&#91; [
&#92; \
&#93; ]
&#94; ^
&#95; _
&#96; `
&#97; a
&#98; b
&#99; c
&#100; d
&#101; e
&#102; f
&#103; g
&#104; h
&#105; i
&#106; j
&#107; k
&#108; l
&#109; m
&#110; n
&#111; o
&#112; p
&#113; q
&#114; r
&#115; s
&#116; t
&#117; u
&#118; v
&#119; w
&#120; x
&#121; y
&#122; z
&#123; {
&#124;
&#125; }
&#126; ~
&#127; &#127;
&#128; &#128;
&#129; &#129;
&#130; &#130;
&#131; &#131;
&#132; &#132;
&#133; &#133;
&#134; &#134;
&#135; &#135;
&#136; &#136;
&#137; &#137;
&#138; &#138;
&#139; &#139;
&#140; &#140;
&#141; &#141;
&#142; &#142;
&#143; &#143;
&#144; &#144;
&#145; &#145;
&#146; &#146;
&#147; &#147;
&#148; &#148;
&#149; &#149;
&#150; &#150;
&#151; &#151;
&#152; &#152;
&#153; &#153;
&#154; &#154;
&#155; &#155;
&#156; &#156;
&#157; &#157;
&#158; &#158;
&#159; &#159;
&#160;  
&#161; ¡
&#162; ¢
&#163; £ &pound; : £
&#164; ¤
&#165; ¥
&#166; ¦
&#167; §
&#168; ¨
&#169; ©
&#170; ª
&#171; «
&#172; ¬
&#173; ­
&#174; ®
&#175; ¯
&#176; °
&#177; ±
&#178; ²
&#179; ³
&#180; ´
&#181; µ
&#182;
&#183; ·
&#184; ¸
&#185; ¹
&#186; º
&#187; »
&#188; ¼
&#189; ½
&#190; ¾
&#191; ¿
&#192; À &Agrave; : À
&#193; Á &Aacute; : Á
&#194; Â
&#195; Ã &Atilde; : Ã
&#196; Ä &Auml; : Ä
&#197; Å
&#198; Æ &AElig; : Æ
&#199; Ç &Ccedil; : Ç
&#200; È
&#201; É
&#202; Ê
&#203; Ë
&#204; Ì
&#205; Í
&#206; Î
&#207; Ï
&#208; Ð
&#209; Ñ
&#210; Ò
&#211; Ó
&#212; Ô
&#213; Õ
&#214; Ö
&#215; ×
&#216; Ø
&#217; Ù
&#218; Ú
&#219; Û
&#220; Ü
&#221; Ý
&#222; Þ
&#223; ß
&#224; à
&#225; á
&#226; â
&#227; ã
&#228; ä
&#229; å
&#230; æ
&#231; ç &ccedil; : ç
&#232; è
&#233; é
&#234; ê
&#235; ë
&#236; ì
&#237; í
&#238; î
&#239; ï
&#240; ð
&#241; ñ
&#242; ò
&#243; ó
&#244; ô
&#245; õ
&#246; ö
&#247; ÷
&#248; ø
&#249; ù
&#250; ú
&#251; û
&#252; ü
&#253; ý
&#254; þ &thorn; : þ
&#255; ÿ
&#256; Ā

Notes

  • 2024-08-31 &#153; used to map to &trade; : . That is either browser-specific or is no longer the case.

Entities by Appearance

  • &larr; : - left arrow
  • &rarr; : - right arrow
  • &lsquo; : - left single-quote
  • &rsquo; : - right single-quote
  • &trade; : - trademark symbol (as superscript)
  • &copy; : © - copyright-circle symbol
  • &reg; : ® - registered-circle symbol
  • &Alpha; : Α - Greek letter alpha (upper)
  • &Beta; : Β - Greek letter beta (upper)
  • &Gamma; : Γ - Greek letter gamma (upper)
  • &Delta; : Δ - Greek letter delta (upper)
  • &alpha; : α - Greek letter alpha (lower)
  • &beta; : β - Greek letter beta (lower)
  • &gamma; : γ - Greek letter gamma (lower)
  • &delta; : δ - Greek letter delta (lower)

Roman alphabet

upper lower mnemonics
&#193; : Á - A with acute accent &#225; : á - a with acute accent &Aacute; : Á &aacute; : á
&#257; : ā - a with macron
&#259; : ă - a with caron
&#268; : Č - C with caron &#269; : č - c with caron

Notes

  • 2024-08-31 &Ccaron; : &Ccaron; and &ccaron; : &ccaron; are apparently no longer supported, if they ever existed and were not just a figment of my imagination.

Links