HTML/entity: Difference between revisions

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Reference: standard ASCII in entities; Google query
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Overview==
<hide>
[[category:computing terminology]]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.
[[page type::article]]
 
[[page type::reference]]
[[thing type::character format]]
[[category:computer terminology]]
</hide>
==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.
==Pages==
* [[/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://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;''')
==Standard ASCII in Entities==
** '''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".
| &#65; || &amp;#65; &emsp; &emsp; || &#97; || &amp;#97;
==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.
| &#66; || &amp;#66; || &#98; || &amp;#98;
* '''2020-05-23''' This seems to have been fixed?
|-
| &#67; || &amp;#67; || &#99; || &amp;#99;
|-
| &#68; || &amp;#68; || &#100; || &amp;#100;
|-
| &#69; || &amp;#69; || &#101; || &amp;#101;
|-
| &#70; || &amp;#70; || &#102; || &amp;#102;
|-
| &#71; || &amp;#71; || &#103; || &amp;#103;
|-
| &#72; || &amp;#72; || &#104; || &amp;#104;
|-
| &#73; || &amp;#73; || &#105; || &amp;#105;
|-
| &#74; || &amp;#74; || &#106; || &amp;#106;
|-
| &#75; || &amp;#75; || &#107; || &amp;#107;
|-
| &#76; || &amp;#76; || &#108; || &amp;#108;
|-
| &#77; || &amp;#77; || &#109; || &amp;#109;
|-
| &#78; || &amp;#78; || &#110; || &amp;#110;
|-
| &#79; || &amp;#79; || &#111; || &amp;#111;
|-
| &#80; || &amp;#80; || &#112; || &amp;#112;
|-
| &#81; || &amp;#81; || &#113; || &amp;#113;
|-
| &#82; || &amp;#82; || &#114; || &amp;#114;
|-
| &#83; || &amp;#83; || &#115; || &amp;#115;
|-
| &#84; || &amp;#84; || &#116; || &amp;#116;
|-
| &#85; || &amp;#85; || &#117; || &amp;#117;
|-
| &#86; || &amp;#86; || &#118; || &amp;#118;
|-
| &#87; || &amp;#87; || &#119; || &amp;#119;
|-
| &#88; || &amp;#88; || &#120; || &amp;#120;
|-
| &#89; || &amp;#89; || &#121; || &amp;#121;
|-
| &#90; || &amp;#90; || &#122; || &amp;#122;
|-
| &#91; || &amp;#91; || &#123; || &amp;#123;
|-
| &#92; || &amp;#92; || &#124; || &amp;#124;
|-
| &#93; || &amp;#93; || &#125; || &amp;#125;
|-
| &#94; || &amp;#94; || &#126; || &amp;#126;
|-
| &#95; || &amp;#95; || &#127; || &amp;#127;
|-
| &#96; || &amp;#96; || &#128; || &amp;#128;
|-
|
|-
|
|}

Latest revision as of 16:14, 6 February 2025

<hide> page type::article page type::reference thing type::character format </hide>

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?