How to write out HTML entity name ( , <, >, etc)

后端 未结 4 499
生来不讨喜
生来不讨喜 2020-12-03 22:29

How would I write the entity name in HTML and not have it do its function? Example: I\'m doing a tutorial and want to tell someone how to use the non-breaking space in their

4条回答
  •  执笔经年
    2020-12-03 23:06

    You will need to write out a part of the code, in this example, I'll use the ampersand. Instead of writing  , write out the ampersand, &, and then write nbsp;. Your final result should be &nbsp;, which will display   on the webpage.

提交回复
热议问题