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
< HTML
→Questions: answer |
→Standard ASCII in Entities: unified table; now covering 0-255 |
||
| Line 10: | Line 10: | ||
==Standard ASCII in Entities== | ==Standard ASCII in Entities== | ||
{| | * 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=6 style="border-bottom: 1px solid blue;" | standard || colspan=8 style="border-bottom: 1px solid grey;" | extended | |||
|- | |- | ||
| &# | | ! || &#33; | ||
| | | A || &#65; | ||
| &# | | a || &#97; | ||
|  || &#129; | |||
| ¡ || &#161; | |||
| Á || &#193; | |||
| á || &#225; | |||
|- | |- | ||
| " || &#34; | | " || &#34; | ||
| B || &#66; | |||
| b || &#98; | |||
| ‚ || &#130; | |||
| ¢ || &#162; | |||
| Â || &#194; | |||
| â || &#226; | |||
|- | |- | ||
| # || &#35; | | # || &#35; | ||
| C || &#67; | |||
| c || &#99; | |||
| ƒ || &#131; | |||
| £ || &#163; | |||
| Ã || &#195; | |||
| ã || &#227; | |||
|- | |- | ||
| $ || &#36; | | $ || &#36; | ||
| D || &#68; | |||
| d || &#100; | |||
| „ || &#132; | |||
| ¤ || &#164; | |||
| Ä || &#196; | |||
| ä || &#228; | |||
|- | |- | ||
| % || &#37; | | % || &#37; | ||
| E || &#69; | |||
| e || &#101; | |||
| … || &#133; | |||
| ¥ || &#165; | |||
| Å || &#197; | |||
| å || &#229; | |||
|- | |- | ||
| & || &#38; | | & || &#38; &amp; | ||
| F || &#70; | |||
| f || &#102; | |||
| † || &#134; | |||
| ¦ || &#166; | |||
| Æ || &#198; | |||
| æ || &#230; | |||
|- | |- | ||
| ' || &#39; | | ' || &#39; | ||
| G || &#71; | |||
| g || &#103; | |||
| ‡ || &#135; | |||
| § || &#167; &sect; | |||
| Ç || &#199; | |||
| æ || &#230; | |||
|- | |- | ||
| ( || &#40; | | ( || &#40; | ||
| H || &#72; | |||
| h || &#104; | |||
| ˆ || &#136; | |||
| ¨ || &#168; | |||
| È || &#200; | |||
| ç || &#231; | |||
|- | |- | ||
| ) || &#41; | | ) || &#41; | ||
| I || &#73; | |||
| i || &#105; | |||
| ‰ || &#137; | |||
| © || &#169; &copy; | |||
| É || &#201; | |||
| è || &#232; | |||
|- | |- | ||
| * || &#42; | | * || &#42; | ||
| J || &#74; | |||
| j || &#106; | |||
| Š || &#138; | |||
| ª || &#170; | |||
| Ê || &#202; | |||
| é || &#233; | |||
|- | |- | ||
| + || &#43; | | + || &#43; | ||
| K || &#75; | |||
| k || &#107; | |||
| ‹ || &#139; | |||
| « || &#171; | |||
| Ë || &#203; | |||
| ê || &#234; | |||
|- | |- | ||
| , || &#44; | | , || &#44; | ||
| L || &#76; | |||
| l || &#108; | |||
| Œ || &#140; | |||
| ¬ || &#172; | |||
| Ì || &#204; | |||
| ë || &#235; | |||
|- | |- | ||
| - || &#45; | | - || &#45; | ||
| M || &#77; | |||
| m || &#109; | |||
|  || &#141; | |||
| ­ || &#173; | |||
| Í || &#205; | |||
| ì || &#236; | |||
|- | |- | ||
| . || &#46; | | . || &#46; | ||
| N || &#78; | |||
| n || &#110; | |||
| Ž || &#142; | |||
| ® || &#174; | |||
| Î || &#206; | |||
| í || &#237; | |||
|- | |- | ||
| / || &#47; | | / || &#47; | ||
| O || &#79; | |||
| o || &#111; | |||
|  || &#143; | |||
| ¯ || &#175; | |||
| Ï || &#207; | |||
| î || &#238; | |||
|- | |- | ||
| 0 || &#48; | | 0 || &#48; | ||
| P || &#80; | |||
| p || &#112; | |||
|  || &#144; | |||
| ° || &#176; | |||
| Ð || &#208; | |||
| ï || &#239; | |||
|- | |- | ||
| 1 || &#49; | | 1 || &#49; | ||
| Q || &#81; | |||
| q || &#113; | |||
| ‘ || &#145; | |||
| ± || &#177; | |||
| Ñ || &#209; | |||
| ð || &#240; | |||
|- | |- | ||
| 2 || &#50; | | 2 || &#50; | ||
| R || &#82; | |||
| r || &#114; | |||
| ’ || &#146; | |||
| ² || &#178; | |||
| Ò || &#210; | |||
| ñ || &#241; | |||
|- | |- | ||
| 3 || &#51; | | 3 || &#51; | ||
| S || &#83; | |||
| s || &#115; | |||
| “ || &#147; | |||
| ³ || &#179; | |||
| Ó || &#211; | |||
| ò || &#242; | |||
|- | |- | ||
| 4 || &#52; | | 4 || &#52; | ||
| T || &#84; | |||
| t || &#116; | |||
| ” || &#148; | |||
| ´ || &#180; | |||
| Ô || &#212; | |||
| ó || &#243; | |||
|- | |- | ||
| 5 || &#53; | | 5 || &#53; | ||
| U || &#85; | |||
| u || &#117; | |||
| • || &#149; | |||
| µ || &#181; | |||
| Õ || &#213; | |||
| ô || &#244; | |||
|- | |- | ||
| 6 || &#54; | | 6 || &#54; | ||
| V || &#86; | |||
| v || &#118; | |||
| – || &#150; | |||
| ¶ || &#182; | |||
| Ö || &#214; | |||
| õ || &#245; | |||
|- | |- | ||
| 7 || &#55; | | 7 || &#55; | ||
| W || &#87; | |||
| w || &#119; | |||
| — || &#151; | |||
| · || &#183; | |||
| × || &#215; | |||
| ö || &#246; | |||
|- | |- | ||
| 8 || &#56; | | 8 || &#56; | ||
| X || &#88; | |||
| x || &#120; | |||
| ˜ || &#152; | |||
| ¸ || &#184; | |||
| Ø || &#216; | |||
| ÷ || &#247; | |||
|- | |- | ||
| 9 || &#57; | | 9 || &#57; | ||
| Y || &#89; | |||
| y || &#121; | |||
| ™ || &#153; &trade; | |||
| ¹ || &#185; | |||
| Ù || &#217; | |||
| ø || &#248; | |||
|- | |- | ||
| : || &#58; | | : || &#58; | ||
| Z || &#90; | |||
| z || &#122; | |||
| š || &#154; | |||
| º || &#186; | |||
| Ú || &#218; | |||
| ù || &#249; | |||
|- | |- | ||
| ; || &#59; | | ; || &#59; | ||
| [ || &#91; | |||
| { || &#123; | |||
| › || &#155; | |||
| » || &#187; | |||
| Û || &#219; | |||
| ú || &#250; | |||
|- | |- | ||
| < || &#60; | | < || &#60; | ||
| \ || &#92; | |||
| | || &#124; | |||
| œ || &#156; | |||
| ¼ || &#188; | |||
| Ü || &#220; | |||
| û || &#251; | |||
|- | |- | ||
| = || &#61; | | = || &#61; | ||
| ] || &#93; | |||
| } || &#125; | |||
|  || &#157; | |||
| ½ || &#189; | |||
| Ý || &#221; | |||
| ü || &#252; | |||
|- | |- | ||
| > || &#62; | | > || &#62; | ||
| ^ || &#94; | |||
| ~ || &#126; | |||
| ž || &#158; | |||
| ¾ || &#190; | |||
| Þ || &#222; | |||
| ý || &#253; | |||
|- | |- | ||
| ? || &#63; | | ? || &#63; | ||
| _ || &#95; | |||
|  || &#127; | |||
| Ÿ || &#159; | |||
| ¿ || &#191; | |||
| ß || &#223; | |||
| þ || &#254; | |||
|- | |- | ||
| @ || &#64; | | @ || &#64; | ||
| ` || &#96; | |||
| € || &#128; | |||
| &# | |   || &#160; | ||
| À || &#192; | |||
| &# | | à || &#224; | ||
| ÿ || &#255; | |||
| &# | |||
| &# | |||
| &# | |||
| &# | |||
|} | |} | ||
Revision as of 16:00, 3 May 2009
Overview
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.
Reference
- Wikipedia (Character entity reference)
- HTML 4.0 entities
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).
Standard ASCII in Entities
- 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
| standard | extended | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ! | ! | A | A | a | a |  |  | ¡ | ¡ | Á | Á | á | á |
| " | " | B | B | b | b | ‚ | ‚ | ¢ | ¢ | Â | Â | â | â |
| # | # | C | C | c | c | ƒ | ƒ | £ | £ | Ã | Ã | ã | ã |
| $ | $ | D | D | d | d | „ | „ | ¤ | ¤ | Ä | Ä | ä | ä |
| % | % | E | E | e | e | … | … | ¥ | ¥ | Å | Å | å | å |
| & | & & | F | F | f | f | † | † | ¦ | ¦ | Æ | Æ | æ | æ |
| ' | ' | G | G | g | g | ‡ | ‡ | § | § § | Ç | Ç | æ | æ |
| ( | ( | H | H | h | h | ˆ | ˆ | ¨ | ¨ | È | È | ç | ç |
| ) | ) | I | I | i | i | ‰ | ‰ | © | © © | É | É | è | è |
| * | * | J | J | j | j | Š | Š | ª | ª | Ê | Ê | é | é |
| + | + | K | K | k | k | ‹ | ‹ | « | « | Ë | Ë | ê | ê |
| , | , | L | L | l | l | Œ | Œ | ¬ | ¬ | Ì | Ì | ë | ë |
| - | - | M | M | m | m |  |  | | ­ | Í | Í | ì | ì |
| . | . | N | N | n | n | Ž | Ž | ® | ® | Î | Î | í | í |
| / | / | O | O | o | o |  |  | ¯ | ¯ | Ï | Ï | î | î |
| 0 | 0 | P | P | p | p |  |  | ° | ° | Ð | Ð | ï | ï |
| 1 | 1 | Q | Q | q | q | ‘ | ‘ | ± | ± | Ñ | Ñ | ð | ð |
| 2 | 2 | R | R | r | r | ’ | ’ | ² | ² | Ò | Ò | ñ | ñ |
| 3 | 3 | S | S | s | s | “ | “ | ³ | ³ | Ó | Ó | ò | ò |
| 4 | 4 | T | T | t | t | ” | ” | ´ | ´ | Ô | Ô | ó | ó |
| 5 | 5 | U | U | u | u | • | • | µ | µ | Õ | Õ | ô | ô |
| 6 | 6 | V | V | v | v | – | – | ¶ | ¶ | Ö | Ö | õ | õ |
| 7 | 7 | W | W | w | w | — | — | · | · | × | × | ö | ö |
| 8 | 8 | X | X | x | x | ˜ | ˜ | ¸ | ¸ | Ø | Ø | ÷ | ÷ |
| 9 | 9 | Y | Y | y | y | ™ | ™ ™ | ¹ | ¹ | Ù | Ù | ø | ø |
| : | : | Z | Z | z | z | š | š | º | º | Ú | Ú | ù | ù |
| ; | ; | [ | [ | { | { | › | › | » | » | Û | Û | ú | ú |
| < | < | \ | \ | | | | | œ | œ | ¼ | ¼ | Ü | Ü | û | û |
| = | = | ] | ] | } | } |  |  | ½ | ½ | Ý | Ý | ü | ü |
| > | > | ^ | ^ | ~ | ~ | ž | ž | ¾ | ¾ | Þ | Þ | ý | ý |
| ? | ? | _ | _ |  |  | Ÿ | Ÿ | ¿ | ¿ | ß | ß | þ | þ |
| @ | @ | ` | ` | € | € |   | À | À | à | à | ÿ | ÿ | |
