Emojis in HTML
Emojis in HTML:
Emojis generally is the character-driven from UTF-8 (Unicode). They are looking like images, but they are not images just they have code for each emojis.
In order to know the definition of the webpage, a web browser should character set defining the page. To do this you can include the charset=” UTF-8”.
Example:
<meta charset="UTF-8">
There are lots of characters that are not present on the keyboard, but you can access them with the help of a number or certain code is assigned to it.
Example:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<h1>Emoji to welcome</h1>
<p>😄</p>
</body>
</html
Note: You can apply the CSS on emojis easily i.e. Sizes can be increased or decreased.
Example:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<h1>How to deals with size of Emojis?</h1>
<p style="font-size:100px">
😀 😄 😍 💗
</p>
</body>
</html>
