Numeric character references, for example like the following example: & or can be written as a character entity reference by writing as follows: & which has the intention of replacing a symbol &(ampersand) character.
There are several groupings in the HTML Character Code, namely:
- Special HTML Codes
- Regular / Standard HTML Codes
- Extra HTML Codes
- HTML Math Symbol Codes
- Currency Symbol Codes
- Intellectual Property Codes
- Greek Alphabet Codes
The grouping above is intended to make it easier to find which HTML Code to use.
Special HTML Codes
| Character | Numeric Code | Named Code | Description |
|---|---|---|---|
| 	 | horizontal tab | ||
| | line feed | ||
| | carriage return / enter | ||
|   | | non-breaking space |
Regular HTML Character Codes
| Character | Numeric Code | Named Code | Description |
|---|---|---|---|
|   | space | ||
| ! | ! | exclamation mark | |
| " | " | " | double quote |
| # | # | number | |
| $ | $ | dollar | |
| % | % | percent | |
| & | & | & | ampersand |
| ' | ' | ' | single quote |
| ( | ( | left parenthesis | |
| ) | ) | right parenthesis | |
| * | * | asterisk | |
| + | + | plus | |
| , | , | comma | |
| - | - | minus | |
| . | . | period | |
| / | / | slash | |
| 0 | 0 | zero | |
| 1 | 1 | one | |
| 2 | 2 | two | |
| 3 | 3 | three | |
| 4 | 4 | four | |
| 5 | 5 | five | |
| 6 | 6 | six | |
| 7 | 7 | seven | |
| 8 | 8 | eight | |
| 9 | 9 | nine | |
| : | : | colon | |
| ; | ; | semicolon | |
| < | < | < | less than |
| = | = | equality sign | |
| > | > | > | greater than |
| ? | ? | question mark | |
| @ | @ | at sign | |
| A | A | ||
| B | B | ||
| C | C | ||
| D | D | ||
| E | E | ||
| F | F | ||
| G | G | ||
| H | H | ||
| I | I | ||
| J | J | ||
| K | K | ||
| L | L | ||
| M | M | ||
| N | N | ||
| O | O | ||
| P | P | ||
| Q | Q | ||
| R | R | ||
| S | S | ||
| T | T | ||
| U | U | ||
| V | V | ||
| W | W | ||
| X | X | ||
| Y | Y | ||
| Z | Z | ||
| [ | [ | left square bracket | |
| \ | \ | backslash | |
| ] | ] | right square bracket | |
| ^ | ^ | caret / circumflex | |
| _ | _ | underscore | |
| ` | ` | grave / accent | |
| a | a | ||
| b | b | ||
| c | c | ||
| d | d | ||
| e | e | ||
| f | f | ||
| g | g | ||
| h | h | ||
| i | i | ||
| j | j | ||
| k | k | ||
| l | l | ||
| m | m | ||
| n | n | ||
| o | o | ||
| p | p | ||
| q | q | ||
| r | r | ||
| s | s | ||
| t | t | ||
| u | u | ||
| v | v | ||
| w | w | ||
| x | x | ||
| y | y | ||
| z | z | ||
| { | { | ||
| | | | | left curly bracket | |
| } | } | vertical bar | |
| } | } | right curly bracket | |
| ~ | ~ | tilde |
Extra Codes
| Character | Numeric Code | Named Code | Description |
|---|---|---|---|
|   | | non-breaking space | |
| ¡ | ¡ | ¡ | inverted exclamation mark |
| ¢ | ¢ | ¢ | cent sign |
| £ | £ | £ | pound sign |
| ¤ | ¤ | ¤ | currency sign |
| ¥ | ¥ | ¥ | yen sign |
| ¦ | ¦ | ¦ | broken bar |
| § | § | § | section sign |
| ¨ | ¨ | ¨ | diaeresis |
| © | © | © | copyright sign |
| ª | ª | ª | feminine ordinal indicator |
| « | « | « | left pointing guillemet |
| ¬ | ¬ | ¬ | not sign |
| | ­ | ­ | soft hyphen |
| ® | ® | ® | registered sign |
| ¯ | ¯ | ¯ | macron |
| ° | ° | ° | degree sign |
| ± | ± | ± | plus-minussign |
| ² | ² | ² | superscript two |
| ³ | ³ | ³ | superscript three |
| ´ | ´ | ´ | acute accent |
| µ | µ | µ | micro sign |
| ¶ | ¶ | ¶ | paragraph sign |
| · | · | · | middle dot |
| ¸ | ¸ | ¸ | spacing cedilla |
| ¹ | ¹ | ¹ | superscript one |
| º | º | º | masculine ordinal indicator |
| » | » | » | right pointing guillemet |
| ¼ | ¼ | ¼ | fraction one quarter |
| ½ | ½ | ½ | fraction one half |
| ¾ | ¾ | ¾ | fraction three quarters |
| ¿ | ¿ | ¿ | inverted question mark |
| À | À | ¿ | capital A with grave |
| Á | Á | À | inverted question mark |
| Â | Â | Á | capital A with acute |
| Ã | Ã | Â | capital A with circumflex |
| Ä | Ä | Ã | capital A with tilde |
| Å | Å | Ä | capital A with diaeresis |
| Æ | Æ | Å | capital A with ring |
| Ç | Ç | Æ | capital AE |
| È | È | Ç | capital C with cedilla |
| É | É | È | capital E with grave |
| Ê | Ê | É | capital E with acute |
| Ë | Ë | Ê | capital E with circumflex |
| Ì | Ì | Ë | capital E with diaeresis |
| Í | Í | Ì | capital I with grave |
| Î | Î | Ì | capital I with grave |
| Ï | Ï | Ï | capital I with diaeresis |
| Ð | Ð | Ð | capital ETH |
| Ñ | Ñ | Ñ | capital N with tilde |
| Ò | Ò | Ò | capital O with grave |
| Ó | Ó | Ó | capital O with acute |
| Ô | Ô | Ô | capital O with circumflex |
| Õ | Õ | Õ | capital O with tilde |
| Ö | Ö | Ö | capital O with diaeresis |
| × | × | × | multiplication sign |
| Ø | Ø | Ø | capital O with stroke |
| Ù | Ù | Ù | capital U with grave |
| Ú | Ú | Ú | capital U with acute |
| Û | Û | Û | capital U with circumflex |
| Ü | Ü | Ü | capital U with diaeresis |
| Ý | Ý | Ý | capital Y with acute |
| Þ | Þ | Þ | capital THORN |
| ß | ß | ß | small sharp s |
| à | à | à | small a with grave |
| á | á | á | small a with acute |
| â | â | &; | small a with circumflex |
| ã | ã | ã | small a with tilde |
| ä | ä | ä | small a with diaeresis |
| å | å | å | small a with ring above |
| æ | æ | æ | small ae |
| ç | ç | ç | small c with cedilla |
| è | è | è | small e with grave |
| é | é | é | small e with acute |
| ê | ê | ê | small e with circumflex |
| ë | ë | ë | small e with diaeresis |
| ì | ì | ì | small i with grave |
| í | í | í | small i with acute |
| î | î | î | small i with circumflex |
| ï | ï | ï | small i with diaeresis |
| ð | ð | ð | small eth |
| ñ | ñ | ñ | small n with tilde |
| ò | ò | òeth; | small o with grave |
| ó | ó | ó | small o with acute |
| ô | ô | ô | small o with circumflex |
| õ | õ | õ | small o with tilde |
| ö | ö | ö | small o with diaeresis |
| ÷ | ÷ | ÷ | division sign |
| ø | ø | ø | small o with stroke |
| ù | ù | ù | small u with grave |
| ú | ú | ú | small u with acute |
| û | û | û | small u with circumflex |
| ü | ü | ü | small u with diaeresis |
| ý | ý | ý | small y with acute |
| þ | þ | þ | small thorn |
| ÿ | ÿ | ÿ | small y with diaeresis |
In writing code in HTML, logical constructs are known as character data and attribute values consist of a sequence of characters, where each character can manifest directly or can be represented by a series of characters called character references. There are 2 types of references that can be used, namely: numeric character references and character entity references.
No comments
Post a Comment