Using Emoji's ๐ in HTML
How to make your articles more readable and engaging using Emoji's?
Using Emoji's ๐ in HTML
Emojiโs ๐ in HTML
- There are mainly two ways to display emojis on your web page, but first:
HTML charset
- To show the correct symbols, inform the web browser of the character set used on your page.
- Although the UFT-8 is the default character set, itโs better to declare it explicitly to ensure the correct information is displayed.
- So, in the HTML <head> tags, put:
1
<meta charset="UTF-8>
- First mode: using the emoji Unicode
- First, go to this Unicode site page with the full emoji list.
- Find the emoji that you want to use.
- For example, Iโll choose the smiley upside-down face with the code
U+1F643
.
- Now replace the U+ for &#x, adding and ; at the end, and put it on your HTML code:
1
2
3
4
5
6
7
8
9
10
11
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Lorem Ipsum</title>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<p>🙃</p>
</body>
</html>
- And the result will be: Page example
2. Second mode: Copy and Paste (Everyoneโs Favorite)
- You can copy and paste the emoji. Your code will be:
1
2
3
4
5
6
7
8
9
10
11
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Lorem Ipsum</title>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<p>๐</p>
</body>
</html>
- And you will have the same result.
Emojis by Category
Faces
๐ ๐ ๐คฃ ๐ซ ๐ ๐ ๐ ๐ ๐คฉ ๐ ๐ ๐ค ๐ฐ ๐ก ๐ญ ๐ด ๐งโโ๏ธ ๐ฎ๐ณ ๐คทโโ๏ธ ๐คฆโโ๏ธ๐๐ ๐ ๐ซต ๐ค๐ โ ๐ ๐ฏ ๐ฅ ๐ฝ ๐ ๐ค
Daily
โ โ โโโก โ โ ๐ โ ๐ ๐ ๐ ๐ ๐ ๐ผ ๐ โ โ ๐ฐ ๐ โญ ๐ ๐ โ ๐ ๐ก ๐ ๐ป ๐ ๐ ๐ ๐ ๐ ๐ค ๐ด ๐บ ๐ ๐ถ ๐ต๐ฟโโ๏ธ ๐ ๐พ ๐ณ ๐ โถ ๐
Animals
๐ฆ ๐ฆข ๐ ๐ ๐ง ๐๐ณ ๐
Numbers
#๏ธโฃ *๏ธโฃ 0๏ธโฃ 1๏ธโฃ 2๏ธโฃ 3๏ธโฃ 4๏ธโฃ 5๏ธโฃ 6๏ธโฃ 7๏ธโฃ 8๏ธโฃ 9๏ธโฃ ๐
Technology
๐ ๐ด ๐ ๐ฆ โฏ โธ๏ธ โธ ๐ณ ๐ง ๐จ๐ปโ๐ป ๐ โพ๏ธ ๐ก๏ธ ๐
Good luck with your html emotions !!!
This post is licensed under CC BY 4.0 by the author.