【问题标题】:How to Make < and > As Actual Text Symbols and Not Tags Within HTML [duplicate]如何使 < 和 > 作为 HTML 中的实际文本符号而不是标签 [重复]
【发布时间】:2014-07-20 20:38:23
【问题描述】:

每当我输入“

【问题讨论】:

标签: html text special-characters


【解决方案1】:

喜欢这个&amp;lt;&amp;gt;

这里有更多关于其他html encodings的信息

【讨论】:

    【解决方案2】:

    您可以像这样使用实际的实体名称:

    <p>&#60</p>
    <p>&#62</p>
    

    它将在控制台中显示

    阅读这篇关于 HTML 实体的文章,它应该会有所帮助!

    http://www.w3schools.com/html/html_entities.asp

    【讨论】:

      猜你喜欢
      • 2012-12-17
      • 2021-12-16
      • 2015-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-17
      • 1970-01-01
      相关资源
      最近更新 更多