--- id: html-emojis title: "HTML Emojis" category: "Frontend" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["HTML emoji", "emojis in HTML", "Unicode emojis", "UTF-8 emojis", "emoji characters", "emoji entity numbers"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.89 created_at: 2026-06-23 updated_at: 2026-06-23 review_reason: "" merge_history: [] tags: ["html", "web", "frontend", "emojis", "unicode", "utf-8", "w3schools"] raw_sources: ["https://www.w3schools.com/html/html_emojis.asp"] applied_in: [] github_commit: "" --- # [[HTML Emojis]] ## π― ν μ€ ν΅μ°° (One-line insight) Emojis look like images but are actually **letters (characters) from the UTF-8 (Unicode) character set**, so they can be copied, displayed, and sized just like any other HTML character. [S1] ## π§ ν΅μ¬ κ°λ (Core concepts) - **Emojis are characters, not images** β they are letters from the UTF-8 (Unicode) character set, which is why they behave like ordinary text. [S1] - **Charset must be declared** β to display a page correctly the browser must know its character set, declared with ``. If not specified, UTF-8 is the default in HTML. [S1] - **Entity numbers** β each emoji has a numeric reference (e.g. `😀` for π), exactly like other character entities. [S1] - **Styleable like text** β because emojis are characters, they can be copied, displayed, and sized (e.g. via `font-size`) just like any other character. [S1] ## π§© μΆμΆλ ν¨ν΄ (Extracted patterns) - **Charset declaration pattern** β `` in the document head. [S1] - **Numeric character pattern** β `NNN;` renders a Unicode character; e.g. `A` β A, `😀` β π. [S1] - **Sizing pattern** β wrap emojis in a styled element, e.g. `
π
`. [S1] ## π μΈλΆ λ΄μ© (Details) **What are Emojis?** Emojis look like images, but they are not. Emojis are letters (characters) from the UTF-8 (Unicode) character set. Examples shown include π π π. [S1] **The HTML charset Attribute** To display an HTML page correctly, a web browser must know the character set used in the page. This is specified in the `` tag: ``. If not specified, UTF-8 is the default character set in HTML. [S1] **UTF-8 Characters** Because letters are UTF-8 characters, they can be displayed by their entity numbers. The characters A, B, and C are displayed by the numbers 65, 66, and 67: [S1] ```htmlI will display A B C
I will display A B C
``` The `` element defines the character set. [S1] **Emoji Characters** Emojis are also characters from the UTF-8 alphabet and can be referenced by their entity number. A basic emoji display: [S1] ```html😀
``` Since emojis are characters, they can be copied, displayed, and sized just like any other character in HTML β here using `font-size`: [S1] ```html😀 😄 😍 💗
``` **Emoji reference values (sample)** [S1] | Emoji | Value | |---|---| | π» | `🗻` | | πΌ | `🗼` | | π½ | `🗽` | | πΎ | `🗾` | | πΏ | `🗿` | | π | `😀` | | π | `😁` | | π | `😂` | | π | `😃` | | π | `😄` | | π | `😅` | **HTML Emoji Examples** The page lists emoji categories with sample characters, including Smileys (π π π π π), Hands (β β β β π), and further categories: People, Office, Places, Transport, Animals, Food, Plants, Fruits, Sports, Earth & Sky, Weather, Clothing, Audio/Video, Celebration, Entertainment, and Symbols. [S1] ## π οΈ μ μ© μ¬λ‘ (Applied in summary) The "My First Emoji" and "Sized Emojis" examples above are the canonical applied cases: rendering an emoji by entity number and scaling it with CSS `font-size`. No external project/commit applications found in the source. ## π» μ½λ ν¨ν΄ (Code patterns) Display an emoji by entity number (HTML): ```html😀
``` Size emojis like text (HTML): ```html😀 😄 😍 💗
``` ## βοΈ λͺ¨μ λ° μ λ°μ΄νΈ (Contradictions & updates) No contradictions found in the source. [S1] ## β κ²μ¦ μν λ° μ λ’°λ - **μν:** draft - **κ²μ¦ λ¨κ³:** conceptual (μ€μ μ μ© μ¬λ‘ λ°κ²¬ μ applied/validatedλ‘ μΉκ²© κ°λ₯) - **μΆμ² μ λ’°λ:** B (W3Schools β widely used educational reference, not a primary standards body) - **μ λ’° μ μ:** 0.89 - **μ€λ³΅ κ²μ¬ κ²°κ³Ό:** μ κ· μμ± (New discovery) ## π μ§μ κ·Έλν (Knowledge Graph) - **μμ/루νΈ:** [[HTML Tutorial]] - **κ΄λ ¨ κ°λ :** [[HTML Symbols]], [[HTML Charsets]], [[HTML Entities]], [[HTML URL Encode]] - **μ°Έμ‘° λ§₯λ½:** Referenced when adding emoji or Unicode characters to a page, which depends on declaring the UTF-8 character set. ## π μΆμ² (Sources) - [S1] W3Schools β HTML Emojis β https://www.w3schools.com/html/html_emojis.asp ## π λ³κ²½ μ΄λ ₯ (Change history) - 2026-06-23: Initial draft synthesized from the W3Schools "HTML Emojis" page (Astra wiki-curation, P-Reinforce v3.1 format).