html中的转义标签

2022-01-18 00:00:00 escaping tags 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

相关文章