跳转到帖子
在手机APP中查看

一个更好的浏览方法。了解更多

OKCCN - XenForo & IPS Plugin Marketplace

主屏幕上的全屏APP,带有推送通知、徽章等。

在iOS和iPadOS上安装此APP
  1. 在Safari中轻敲分享图标
  2. 滚动菜单并轻敲添加到主屏幕
  3. 轻敲右上角的添加按钮。
在安卓上安装此APP
  1. 轻敲浏览器右上角的三个点菜单 (⋮) 。
  2. 轻敲添加到主屏幕安装APP
  3. 轻敲安装进行确认。
  • 选择语言

Using Emojis in HTML

推荐的帖子

  • 行政经理

Using Emojis in HTML


What are Emojis?

Emojis look like images, but they are not.

Emojis are letters (characters) from the UTF-8 (Unicode) character set:

😄 😍 💗

UTF-8 covers almost all of the characters and symbols in the world.

Emoji Value
🗻🗻
🗼🗼
🗽🗽
🗾🗾
🗿🗿
😀😀
😁😁
😂😂
😃😃
😄😄
😅😅

HTML Emojis Examples

Smileys

😀 😂 😊 😎 😜

Hands

✌ ✊ ☝ ✋ 👌

People

👮 🧕 👦 💏 🤴

Office

📈 💻 📌 📆 📒

Places

⛺ 🌋 🗽 🗿 🏢

Transport

🚈 🚗 🚢 🚌 🚀

Animals

🐴 🐕 🐘 🐻 🐞

Food

☕ 🌭 🍞 🍩 🍣

Plants

🌴 🌳 🌼 🍁 🥑

Fruits

🍇 🍊 🍏 🥝 🥥

Sports

⚽ 🏆 🤿 🏋 ⛳

Earth & Sky

🌐 🌍 🌖 🌟 🌞

Weather

⛅ ☔ 🌈 🌂 ⛄

Clothing

👚 👕 🎩 👜 👠

Audio/Video

🎥 🎵 🎹 🔊 📺

Celebration

🎁 🎃 🎈 🎓 🎂

Entertainment

🎨 🎪 🎭 🎡 🎢

Symbols

💡 💰 🔐 🔞 🔔

Learn More:

Full HTML Emoji Reference


The HTML charset Attribute

To display an HTML page correctly, a web browser must know the character set used in the page.

This is specified in the <meta> tag:

<meta charset="UTF-8">

If not specified, UTF-8 is the default character set in HTML.


UTF-8 Characters

Many UTF-8 characters cannot be typed on a keyboard, but they can always be displayed using numbers (called entity numbers):

  • A is 65
  • B is 66
  • C is 67

Example

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<p>I will display A B C</p>
<p>I will display &#65; &#66; &#67;</p>

</body>
</html>

Example Explained

The <meta charset="UTF-8"> element defines the character set.

The characters A, B, and C, are displayed by the numbers 65, 66, and 67.

To let the browser understand that you are displaying a character, you must start the entity number with &# and end it with ; (semicolon).



Emoji Characters

Emojis are also characters from the UTF-8 alphabet:

  • 😄 is 128516
  • 😍 is 128525
  • 💗 is 128151

Example

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<h1>My First Emoji</h1>

<p>&#128512;</p>

</body>
</html>

Since Emojis are characters, they can be copied, displayed, and sized just like any other character in HTML.

Example

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<body>

<h1>Sized Emojis</h1>

<p style="font-size:48px">
&#128512; &#128516; &#128525; &#128151;
</p>

</body>
</html>

参与讨论

你可立刻发布并稍后注册。 如果你有帐户,立刻登录发布帖子。

游客
回帖…

帐户

导航

搜索

搜索

配置浏览器推送通知

Chrome (安卓)
  1. 轻敲地址栏旁的锁形图标。
  2. 轻敲权限 → 通知。
  3. 调整你的偏好。
Chrome (台式电脑)
  1. 点击地址栏中的挂锁图标。
  2. 选择网站设置。
  3. 找到通知选项并调整你的偏好。