html entity characters, h5 displays special symbols<>

Foreword:

In HTML, certain characters are reserved and you cannot use the less than sign (<) and greater than sign (>) because the browser will mistake them for tags.

such as:

   This will not work <p> <</p> 

For example, use physical characters <p> < </p> 

 

Useful character entities in HTML

Note: Entity names are case sensitive !

Show results description Entity name Entity number
  Space &nbsp; &#160;
< Less than sign &lt; &#60;
> Greater than &gt; &#62;
& And sign &amp; &#38;
" quotation marks &quot; &#34;
' apostrophe  ' (IE does not support) &#39;
Cent &cent; &#162;
£ Pound &pound; &#163;
¥ Yuan (yen) &yen; &#165;
Euro &euro; &#8364;
§ Subsection &sect; &#167;
© Copyright &copy; &#169;
® Trademark &reg; &#174;
trademark &trade; &#8482;
× Multiplication sign &times; &#215;
÷ Division sign &divide; &#247;

Guess you like

Origin blog.csdn.net/qq_41619796/article/details/114264415