HTML - Unicode Character

About

How to show a unicode character in HTML.

Example

Example with the grinning face emoji. This character has the unicode value:

  • 1F600 in hexadecimal
  • or 128512 in decimal
<p>In hexadecimal, I will write: &#x1F600; to show a grinning face</p>
<p>In decimal, I will write: &#128512; to show a grinning face</p>

Output:


Powered by ComboStrap