what are html entities

Report
Question
720 views

An HTML entity is a piece of text ("string") that begins with an ampersand ( & ) and ends with a semicolon ( ; ) . Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces).

Please explain why do you think this question should be reported?

Report Cancel

When to use HTML entities?

Generally, you don’t need to use HTML entities if your editor supports Unicode. For some instances, entities can be useful:

  • Your editor does not support Unicode.

  • Your keyboard does not support the character you would like to type, such as em-dash or the copyright symbol.

  • You want specific HTML-specific characters like <, &, or ".

Useful HTML entities

&nbsp; - non-breaking space

&lt; - less than sign

&gt; - greater than sign

&amp; - ampersand (&)

&quot; - double quotation mark

&apos; - single quotation mark

&cent; - cent sign

&pound; - pound sign

&yen; - yen sign

&euro; - euro sign

&copy; - copyright

&reg; - registered trademark

Thread Reply

Leave an comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>