html用字符转换成表情,HTML表情符号

Using 表情符号s in HTML

表情符号s are characters from the UTF-8 character set: 😄 😍 💗

What are 表情符号s?

表情符号s look like images, or icons, but they are not.

They are letters (characters) from the UTF-8 (Unicode) character set.

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

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 tag:

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

I will display A B C

I will display A B C

来试试吧 »

Example Explained

The 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).

表情符号 Characters

表情符号s are also characters from the UTF-8 alphabet:

😄 is 128516

😍 is 128525

💗 is 128151

Example

My First 表情符号

😀

来试试吧 »

Since 表情符号s are characters, they can be copied, displayed,

and sized just like any other character in HTML.

Example

Sized 表情符号s

😀 😄 😍 💗

来试试吧 »

Some 表情符号 Symbols in UTF-8

表情符号

Value

🗻🗻

🗼🗼

🗽🗽

🗾🗾

🗿🗿

😀😀

😁😁

😂😂

😃😃

😄😄

😅😅

For a full list, please go to our HTML 表情符号 参考.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值