2019年5月6日 星期一

To display a less than sign (<) we must write: < or <

To display a less than sign (<) we must write: &lt; or &#60;

A common character entity used in HTML is the non-breaking space: &nbsp;

The non-breaking hyphen (&#8209;) lets you use a hyphen character (‑) that won't break.


Some Other Useful HTML Character Entities

ResultDescriptionEntity NameEntity Number
non-breaking space&nbsp;&#160;
<less than&lt;&#60;
>greater than&gt;&#62;
&ampersand&amp;&#38;
"double quotation mark&quot;&#34;
'single quotation mark (apostrophe)&apos;&#39;
¢cent&cent;&#162;
£pound&pound;&#163;
¥yen&yen;&#165;
euro&euro;&#8364;
©copyright&copy;&#169;
®registered trademark&reg;&#174;

Note: Entity names are case sensitive.

沒有留言:

張貼留言