How do I add emojis in my codes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

How do I add emojis in my codes?

26th May 2020, 12:55 PM
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️ - avatar
15 Answers
+ 3
Adhiksit First you have to find codepoint(U+XXXXX) of the particular emoji you want.(googling) For html you can use. <p>&#x1F609 </p> You need to replace 'U+' with '&#x' and place it under <p> tag. For css use: h1::before  {   content: "\01F609"; } Remember to replace U+ with \0
26th May 2020, 1:15 PM
Valmob101
Valmob101 - avatar
+ 3
There are certain codes for special signs and symbols and emojis. I will refer u to visit the w3schools for html signs codes
28th May 2020, 8:11 AM
J.K.A
J.K.A - avatar
+ 1
Adhiksit yes, just place the emoji inside <p> tag. And in css place is after content.
26th May 2020, 1:24 PM
Valmob101
Valmob101 - avatar
+ 1
Thanks valmob I understood it now .😊😊😊
26th May 2020, 1:49 PM
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️ - avatar
+ 1
You can copy an emoji from somewhere and paste it in your code or use Valmob101 s answer
28th May 2020, 12:44 AM
Moshie Seidenfeld
Moshie Seidenfeld - avatar
+ 1
If you use Windows you can easily press win+;
28th May 2020, 3:22 AM
ALi
ALi - avatar
+ 1
If you are working on your pc or computer press window key + G . A emoji box will open and you can select which you want.
28th May 2020, 11:21 AM
Dinesh Kuniyal
Dinesh Kuniyal - avatar
+ 1
In html you just type &# 128514; and you get emoji
28th May 2020, 11:43 AM
SANWAR LAL JANGID
SANWAR LAL JANGID - avatar
0
No no in css and html
26th May 2020, 1:05 PM
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️ - avatar
0
But valmob I have seen other people have inserted direct emojis
26th May 2020, 1:22 PM
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️ - avatar
0
Actually valmob I don't have the option for emojis during coding but other times I have them what to do?🤔
26th May 2020, 1:30 PM
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️ - avatar
0
Adhiksit Maybe you have not understood my 1st answer. Please re check.
26th May 2020, 1:36 PM
Valmob101
Valmob101 - avatar
0
So valmob what is U+XXXXX
26th May 2020, 1:37 PM
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️
⚛️⚛️👨‍🔬👨‍💻 ADHIKSIT 👨‍💻👨‍🔬⚛️⚛️ - avatar
0
It is called CLDR or simply unicode of emoji. E.g U+1F609 for winking emoji. Html and CSS identifies these unicodes when U+ is replaced with &#x and 0\ respectively.
26th May 2020, 1:44 PM
Valmob101
Valmob101 - avatar
0
Color
12th Mar 2022, 7:14 PM
Jamesborn James