MTI TEK
  • Home
  • About
  • LLMs
  • Docker
  • Kubernetes
  • Java
  • All Resources
HTML | HTML Character Entities
  1. Understanding HTML Character Entities
  2. Common Special Character Reference Table
  1. Understanding HTML Character Entities
    HTML character entities are used to display special characters that cannot be typed directly on a keyboard or may not display properly due to encoding issues. These characters include symbols, accented letters, mathematical operators, and characters that have special meaning in HTML markup.

    Every HTML entity begins with an ampersand (&) and ends with a semicolon (;). This format tells the browser to interpret the code as a special character rather than regular text.

    HTML provides three different methods to specify these special characters:
    • Named entities: Use descriptive names like (©) for the copyright symbol (©). These are easy to remember and make code more readable.
    • Decimal entities: Use the character's decimal Unicode value like (©) for the copyright symbol (©). The decimal number represents the character's position in the Unicode table.
    • Hexadecimal entities: Use the character's hexadecimal Unicode value like (©) for the copyright symbol (©). Hexadecimal values are often used by developers familiar with Unicode references.

    When using decimal or hexadecimal methods, you must prefix the number with a hash symbol (#) immediately after the ampersand. For hexadecimal values, add an 'x' before the hex digits.

    Essential HTML entities that every developer should know:
    • [ ]: Creates a non-breaking space that prevents line breaks between words or elements.
    • [&lt;]: Displays the less-than symbol (<) without being interpreted as an HTML tag opening.
    • [&gt;]: Displays the greater-than symbol (>) without being interpreted as an HTML tag closing.
    • [&amp;]: Displays an ampersand (&) without starting a new entity code.
    • [&quot;]: Displays quotation marks (") inside attribute values without breaking the HTML structure.

    These entities are particularly important when displaying code examples, user-generated content, or any text that might contain HTML-sensitive characters. Using entities ensures your content displays correctly across all browsers and prevents potential security issues with malformed HTML.
  2. Common Special Character Reference Table
    The following table provides decimal entity codes for frequently used accented characters, symbols, and special punctuation. These characters are commonly needed for international content, proper typography, and multilingual websites.
    Character Decimal Code
    À &#192;
    à &#224;
    Â &#194;
    â &#226;
    Æ &#198;
    æ &#230;
    Ç &#199;
    ç &#231;
    È &#200;
    è &#232;
    É &#201;
    é &#233;
    Ê &#202;
    ê &#234;
    Ë &#203;
    ë &#235;
    Î &#206;
    î &#238;
    Ï &#207;
    ï &#239;
    Ô &#212;
    ô &#244;
    Œ &#140;
    œ &#156;
    Ù &#217;
    ù &#249;
    Û &#219;
    û &#251;
    Ü &#220;
    ü &#252;
    « &#171;
    » &#187;
    € &#128;

    This reference table includes various accented vowels (À, á, â, etc.), special punctuation marks like guillemets (« »), and other characters commonly used in European languages. When building websites that serve international audiences, these entities ensure proper character display regardless of the user's browser or system encoding settings.
© 2025 mtitek