Difference between revisions of "HTML/entity"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
==About==
 
==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 "&amp;" (ampersand) and end with ";" (semicolon). Many entities have mnemonic names (such as "&amp;amp;", which displays an ampersand); any possible character can be displayed as an entity by using the format "&amp;#<u>number</u>;" where <u>number</u> is the output character's [[ASCII]] value in decimal.
 
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 "&amp;" (ampersand) and end with ";" (semicolon). Many entities have mnemonic names (such as "&amp;amp;", which displays an ampersand); any possible character can be displayed as an entity by using the format "&amp;#<u>number</u>;" where <u>number</u> is the output character's [[ASCII]] value in decimal.
 
+
==Pages==
''see also: [[wikipedia:Percent-encoding]]''
+
* [[/list]]: list of some of the most useful entities
 
==Reference==
 
==Reference==
 
* {{wikipedia|Character entity reference}}
 
* {{wikipedia|Character entity reference}}
 +
** see also: {{l/wp|Percent-encoding}}
 
* [http://htmlhelp.com/reference/html40/entities/ HTML 4.0 entities]
 
* [http://htmlhelp.com/reference/html40/entities/ HTML 4.0 entities]
 
* [https://developers.whatwg.org/named-character-references.html#named-character-references Named character references], in alphabetical order, including newer ones not supported by most browsers
 
* [https://developers.whatwg.org/named-character-references.html#named-character-references Named character references], in alphabetical order, including newer ones not supported by most browsers
 
* [https://www.freeformatter.com/html-entities.html HTML Entity List]: "Complete list of HTML entities with their numbers and names. Also included is a full list of ASCII characters that can be represented in HTML (i.e. printable characters)."
 
* [https://www.freeformatter.com/html-entities.html HTML Entity List]: "Complete list of HTML entities with their numbers and names. Also included is a full list of ASCII characters that can be represented in HTML (i.e. printable characters)."
 
 
==Questions==
 
==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: '''&#70;&#82;&#69;&#76;&#71;&#75;&#76;&#79;&#84;&#90;''')
+
* Do search engines 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 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: '''&#70;&#82;&#69;&#76;&#71;&#75;&#76;&#79;&#84;&#90;''')
 
** '''2007-07-15 answer''': Yes, it does find it (though it took several months at least before this page got indexed).
 
** '''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".
 
** '''2016-11-28 answer''': Searching for the word in question no longer produces any results. Neither does searching for "schmerglefrotz".
 
 
==Note==
 
==Note==
 
* '''2017-11-11''' MediaWiki 1.28.0 apparently no longer supports the "&amp;#d;" style of entity; you now have to use named entities.
 
* '''2017-11-11''' MediaWiki 1.28.0 apparently no longer supports the "&amp;#d;" style of entity; you now have to use named entities.
 
* '''2020-05-23''' This seems to have been fixed?
 
* '''2020-05-23''' This seems to have been fixed?
 
==Entities by Number==
 
* 0-8 are not translated
 
* 9 is probably TAB
 
* 10 is probably [[linefeed|LF]]
 
* 13 is probably [[carriage return|CR]]
 
* 14-31 are not translated
 
* 32 is a standard space
 
{| width=100%
 
! colspan=3 style="border-bottom: 1px solid blue;" | lower ASCII || colspan=4 style="border-bottom: 1px solid green;" | upper ASCII
 
|-
 
|
 
{|
 
|-
 
| &#33;  || &amp;#33;
 
|-
 
| &#34; || &amp;#34;
 
|-
 
| &#35; || &amp;#35;
 
|-
 
| &#36; || &amp;#36;
 
|-
 
| &#37; || &amp;#37;
 
|-
 
| &#38; || &amp;#38; &amp;amp;
 
|-
 
| &#39; || &amp;#39;
 
|-
 
| &#40; || &amp;#40;
 
|-
 
| &#41; || &amp;#41;
 
|-
 
| &#42; || &amp;#42;
 
|-
 
| &#43; || &amp;#43;
 
|-
 
| &#44; || &amp;#44;
 
|-
 
| &#45; || &amp;#45;
 
|-
 
| &#46; || &amp;#46;
 
|-
 
| &#47; || &amp;#47;
 
|-
 
| &#48; || &amp;#48;
 
|-
 
| &#49; || &amp;#49;
 
|-
 
| &#50; || &amp;#50;
 
|-
 
| &#51; || &amp;#51;
 
|-
 
| &#52; || &amp;#52;
 
|-
 
| &#53; || &amp;#53;
 
|-
 
| &#54; || &amp;#54;
 
|-
 
| &#55; || &amp;#55;
 
|-
 
| &#56; || &amp;#56;
 
|-
 
| &#57; || &amp;#57;
 
|-
 
| &#58; || &amp;#58;
 
|-
 
| &#59; || &amp;#59;
 
|-
 
| &#60; || &amp;#60;
 
|-
 
| &#61; || &amp;#61;
 
|-
 
| &#62; || &amp;#62;
 
|-
 
| &#63; || &amp;#63;
 
|-
 
| &#64; || &amp;#64;
 
|}
 
 
|
 
 
{|
 
|-
 
| &#65;  || &amp;#65;
 
|-
 
| &#66; || &amp;#66;
 
|-
 
| &#67; || &amp;#67;
 
|-
 
| &#68; || &amp;#68;
 
|-
 
| &#69; || &amp;#69;
 
|-
 
| &#70; || &amp;#70;
 
|-
 
| &#71; || &amp;#71;
 
|-
 
| &#72; || &amp;#72;
 
|-
 
| &#73; || &amp;#73;
 
|-
 
| &#74; || &amp;#74;
 
|-
 
| &#75; || &amp;#75;
 
|-
 
| &#76; || &amp;#76;
 
|-
 
| &#77; || &amp;#77;
 
|-
 
| &#78; || &amp;#78;
 
|-
 
| &#79; || &amp;#79;
 
|-
 
| &#80; || &amp;#80;
 
|-
 
| &#81; || &amp;#81;
 
|-
 
| &#82; || &amp;#82;
 
|-
 
| &#83; || &amp;#83;
 
|-
 
| &#84; || &amp;#84;
 
|-
 
| &#85; || &amp;#85;
 
|-
 
| &#86; || &amp;#86;
 
|-
 
| &#87; || &amp;#87;
 
|-
 
| &#88; || &amp;#88;
 
|-
 
| &#89; || &amp;#89;
 
|-
 
| &#90; || &amp;#90;
 
|-
 
| &#91; || &amp;#91;
 
|-
 
| &#92; || &amp;#92;
 
|-
 
| &#93; || &amp;#93;
 
|-
 
| &#94; || &amp;#94;
 
|-
 
| &#95; || &amp;#95;
 
|-
 
| &#96; || &amp;#96;
 
|}
 
 
|
 
 
{|
 
|-
 
| &#97;  || &amp;#97;
 
|-
 
| &#98; || &amp;#98;
 
|-
 
| &#99; || &amp;#99;
 
|-
 
| &#100; || &amp;#100;
 
|-
 
| &#101; || &amp;#101;
 
|-
 
| &#102; || &amp;#102;
 
|-
 
| &#103; || &amp;#103;
 
|-
 
| &#104; || &amp;#104;
 
|-
 
| &#105; || &amp;#105;
 
|-
 
| &#106; || &amp;#106;
 
|-
 
| &#107; || &amp;#107;
 
|-
 
| &#108; || &amp;#108;
 
|-
 
| &#109; || &amp;#109;
 
|-
 
| &#110; || &amp;#110;
 
|-
 
| &#111; || &amp;#111;
 
|-
 
| &#112; || &amp;#112;
 
|-
 
| &#113; || &amp;#113;
 
|-
 
| &#114; || &amp;#114;
 
|-
 
| &#115; || &amp;#115;
 
|-
 
| &#116; || &amp;#116;
 
|-
 
| &#117; || &amp;#117;
 
|-
 
| &#118; || &amp;#118;
 
|-
 
| &#119; || &amp;#119;
 
|-
 
| &#120; || &amp;#120;
 
|-
 
| &#121; || &amp;#121;
 
|-
 
| &#122; || &amp;#122;
 
|-
 
| &#123; || &amp;#123;
 
|-
 
| &#124; || &amp;#124;
 
|-
 
| &#125; || &amp;#125;
 
|-
 
| &#126; || &amp;#126;
 
|-
 
| &#127; || &amp;#127;
 
|-
 
| &#128; || &amp;#128;
 
|}
 
 
|
 
 
{|
 
|-
 
| &#129; || &amp;#129;
 
|-
 
| &#130; || &amp;#130;
 
|-
 
| &#131; || &amp;#131;
 
|-
 
| &#132; || &amp;#132;
 
|-
 
| &#133; || &amp;#133;
 
|-
 
| &#134; || &amp;#134;
 
|-
 
| &#135; || &amp;#135;
 
|-
 
| &#136; || &amp;#136;
 
|-
 
| &#137; || &amp;#137;
 
|-
 
| &#138; || &amp;#138;
 
|-
 
| &#139; || &amp;#139;
 
|-
 
| &#140; || &amp;#140;
 
|-
 
| &#141; || &amp;#141;
 
|-
 
| &#142; || &amp;#142;
 
|-
 
| &#143; || &amp;#143;
 
|-
 
| &#144; || &amp;#144;
 
|-
 
| &#145; || &amp;#145;
 
|-
 
| &#146; || &amp;#146;
 
|-
 
| &#147; || &amp;#147;
 
|-
 
| &#148; || &amp;#148;
 
|-
 
| &#149; || &amp;#149;
 
|-
 
| &#150; || &amp;#150;
 
|-
 
| &#151; || &amp;#151;
 
|-
 
| &#152; || &amp;#152;
 
|-
 
| &#153; || &amp;#153; &amp;trade;
 
|-
 
| &#154; || &amp;#154;
 
|-
 
| &#155; || &amp;#155;
 
|-
 
| &#156; || &amp;#156;
 
|-
 
| &#157; || &amp;#157;
 
|-
 
| &#158; || &amp;#158;
 
|-
 
| &#159; || &amp;#159;
 
|-
 
| &#160; || &amp;#160;
 
|}
 
 
|
 
 
{|
 
|-
 
| &#161; || &amp;#161;
 
|-
 
| &#162; || &amp;#162;
 
|-
 
| &#163; || &amp;#163; &amp;pound;
 
|-
 
| &#164; || &amp;#164;
 
|-
 
| &#165; || &amp;#165;
 
|-
 
| &#166; || &amp;#166;
 
|-
 
| &#167; || &amp;#167; &amp;sect;
 
|-
 
| &#168; || &amp;#168;
 
|-
 
| &#169; || &amp;#169; &amp;copy;
 
|-
 
| &#170; || &amp;#170;
 
|-
 
| &#171; || &amp;#171;
 
|-
 
| &#172; || &amp;#172;
 
|-
 
| &#173; || &amp;#173;
 
|-
 
| &#174; || &amp;#174;
 
|-
 
| &#175; || &amp;#175;
 
|-
 
| &#176; || &amp;#176;
 
|-
 
| &#177; || &amp;#177;
 
|-
 
| &#178; || &amp;#178;
 
|-
 
| &#179; || &amp;#179;
 
|-
 
| &#180; || &amp;#180;
 
|-
 
| &#181; || &amp;#181;
 
|-
 
| &#182; || &amp;#182;
 
|-
 
| &#183; || &amp;#183;
 
|-
 
| &#184; || &amp;#184;
 
|-
 
| &#185; || &amp;#185;
 
|-
 
| &#186; || &amp;#186;
 
|-
 
| &#187; || &amp;#187;
 
|-
 
| &#188; || &amp;#188;
 
|-
 
| &#189; || &amp;#189;
 
|-
 
| &#190; || &amp;#190;
 
|-
 
| &#191; || &amp;#191;
 
|-
 
| &#192; || &amp;#192; &amp;Agrave;
 
|}
 
 
|
 
 
{|
 
|-
 
| &#193; || &amp;#193; &amp;Aacute;
 
|-
 
| &#194; || &amp;#194;
 
|-
 
| &#195; || &amp;#195; &amp;Atilde;
 
|-
 
| &#196; || &amp;#196; &amp;Auml;
 
|-
 
| &#197; || &amp;#197;
 
|-
 
| &#198; || &amp;#198; &amp;AElig;
 
|-
 
| &#199; || &amp;#199; &amp;Ccedil;
 
|-
 
| &#200; || &amp;#200;
 
|-
 
| &#201; || &amp;#201;
 
|-
 
| &#202; || &amp;#202;
 
|-
 
| &#203; || &amp;#203;
 
|-
 
| &#204; || &amp;#204;
 
|-
 
| &#205; || &amp;#205;
 
|-
 
| &#206; || &amp;#206;
 
|-
 
| &#207; || &amp;#207;
 
|-
 
| &#208; || &amp;#208;
 
|-
 
| &#209; || &amp;#209;
 
|-
 
| &#210; || &amp;#210;
 
|-
 
| &#211; || &amp;#211;
 
|-
 
| &#212; || &amp;#212;
 
|-
 
| &#213; || &amp;#213;
 
|-
 
| &#214; || &amp;#214;
 
|-
 
| &#215; || &amp;#215;
 
|-
 
| &#216; || &amp;#216;
 
|-
 
| &#217; || &amp;#217;
 
|-
 
| &#218; || &amp;#218;
 
|-
 
| &#219; || &amp;#219;
 
|-
 
| &#220; || &amp;#220;
 
|-
 
| &#221; || &amp;#221;
 
|-
 
| &#222; || &amp;#222;
 
|-
 
| &#223; || &amp;#223;
 
|-
 
| &#224; || &amp;#224;
 
|}
 
 
|
 
 
{|
 
|-
 
| &#225; || &amp;#225;
 
|-
 
| &#226; || &amp;#226;
 
|-
 
| &#227; || &amp;#227;
 
|-
 
| &#228; || &amp;#228;
 
|-
 
| &#229; || &amp;#229;
 
|-
 
| &#230; || &amp;#230;
 
|-
 
| &#231; || &amp;#231; &amp;ccedil;
 
|-
 
| &#232; || &amp;#232;
 
|-
 
| &#233; || &amp;#233;
 
|-
 
| &#234; || &amp;#234;
 
|-
 
| &#235; || &amp;#235;
 
|-
 
| &#236; || &amp;#236;
 
|-
 
| &#237; || &amp;#237;
 
|-
 
| &#238; || &amp;#238;
 
|-
 
| &#239; || &amp;#239;
 
|-
 
| &#240; || &amp;#240;
 
|-
 
| &#241; || &amp;#241;
 
|-
 
| &#242; || &amp;#242;
 
|-
 
| &#243; || &amp;#243;
 
|-
 
| &#244; || &amp;#244;
 
|-
 
| &#245; || &amp;#245;
 
|-
 
| &#246; || &amp;#246;
 
|-
 
| &#247; || &amp;#247;
 
|-
 
| &#248; || &amp;#248; &amp;oslash;
 
|-
 
| &#249; || &amp;#249;
 
|-
 
| &#250; || &amp;#250;
 
|-
 
| &#251; || &amp;#251;
 
|-
 
| &#252; || &amp;#252;
 
|-
 
| &#253; || &amp;#253;
 
|-
 
| &#254; || &amp;#254; &amp;thorn;
 
|-
 
| &#255; || &amp;#255;
 
|-
 
| &#256; || &amp;#256;
 
|}
 
 
|}
 
And yes, it keeps going after this: &#257;&#258;&#259;...
 
 
Others (number unknown):
 
* {{show/entity|rsquo}} - right single-quote
 
* {{show/entity|lsquo}} - left single-quote
 
* {{show/entity|Alpha}} - Greek letter alpha (upper)
 
* {{show/entity|Beta}} - Greek letter beta (upper)
 
* {{show/entity|Gamma}} - Greek letter gamma (upper)
 
* {{show/entity|Delta}} - Greek letter delta (upper)
 
* {{show/entity|alpha}} - Greek letter alpha (lower)
 
* {{show/entity|beta}} - Greek letter beta (lower)
 
* {{show/entity|gamma}} - Greek letter gamma (lower)
 
* {{show/entity|delta}} - Greek letter delta (lower)
 
 
==Links==
 
* {{wikipedia|List of XML and HTML character entity references}} - a more complete list
 

Latest revision as of 16:14, 6 February 2025

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 "&amp;", 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.

Pages

  • /list: list of some of the most useful entities

Reference

Questions

  • Do search engines 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 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?