html中的转义标签 [英] Escape tags in html

查看:25
本文介绍了html中的转义标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是html中的转义标签?

What are escape tags in html?

他们是&#34; &#60; &#62; 代表" < >?
这些是如何工作的?
那是十六进制,还是什么?
它是如何制作的,为什么它们不只是角色本身?

Are they &#34; &#60; &#62; to represent " < >?
And how do these work?
Is that hex, or what is it?
How is it made, and why aren't they just the characters themselves?

推荐答案

这里有一些常见的实体.您不需要使用完整的代码 - 经常使用的实体有通用别名.例如,您可以使用 <和>表示小于和大于符号.&是和号等.

Here are some common entities. You do not need to use the full code - there are common aliases for frequently used entities. For example, you can use < and > to indicate less than and greater than symbols. & is ampersand, etc.

那应该是 - &lt;&gt;&amp;

另一个常见的字符是 &nbsp,它通常用于表示 <code> 段中的选项卡

Another common character is &nbsp which is often used to represent tabs in <code> segments

这篇关于html中的转义标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆