How to increase the size of emoji in HTML?

Member

by ramon , in category: HTML/CSS , 2 years ago

How to increase the size of emoji in HTML?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by sofia.thiel , 2 years ago

@ramon  To increase the size of emoji in HTML using font-size:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>How to increase the size of emoji in HTML?</title>
  </head>
  <body>
    <p style="font-size: 100px">&#129409;</p>
  </body>
</html>

Member

by freddy , 8 months ago

@ramon 

In the above example, we are using the CSS font-size property to increase the size of the emoji. In this case, we are setting the font-size to 100px.


You can replace &#129409; with the HTML entity code for your desired emoji. You can find the entity codes for emojis from websites like https://emojicombos.com/unicode/ or https://unicode.org/emoji/charts/full-emoji-list.html.


Adjust the font-size value to increase or decrease the size of the emoji as needed.