Using Emojis in HTML
Emojis are fun icons you can use in your HTML content. They make your website more friendly and engaging.
1. Using Copy-Paste
You can simply copy emojis and paste them directly into HTML:
<p>I love coding! 😃💻</p>
I love coding! 😃💻
2. Using Unicode
Use Unicode values with &#; or &#x; format:
<p>Smile: 😀 | Heart: ❤ </p>
Smile: 😀 | Heart: ❤
3. Common Emojis
| Emoji | HTML Code |
|---|---|
| 😀 | 😀 |
| ❤️ | ❤ |
| 🔥 | 🔥 |
| 🎉 | 🎉 |
4. Why Use Emojis?
- Make your content visually appealing
- Highlight important points
- Easy to add using copy or Unicode
Next Lesson → HTML Encoding (Character Sets)
Previous Lesson → HTML Symbols