Files
freeCodeCamp/mock-guide/english/html/html-entities/index.md
Stuart Taylor 7da04a348b fix: Update packages and fix local dev (#26907)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
2018-10-23 18:48:46 +05:30

2.6 KiB

title
title
HTML Entities

HTML Entities

Overview

What are HTML Entities?

HTML entities are characters that are used to replace reserved characters in HTML or for characters that do not appear on your keyboard. Some characters are reserved in HTML. If you use the less than(<) or greater than(>) signs in your text, the browser might mix them up with tags.

What are they used for?

As mentioned about HTML entities are used in order to replace reserved characters that are reserved by HTML.

How do you use them?

A character entity looks similar to this:

<!-- format &[entity_name]; -->
<!-- example for a less-than sign (<) -->
&lt;

Or

<!-- &#[entity_number]; -->
<!-- example for a less-than sign (<) -->
&#60;

Reference Guide

This is by no means an exhaustive list but the links below will be able to give you more entities if the ones below do not work for your needs. Happy Coding :bowtie:

Character Entity Name Entity Number Description
&#32; Space
! &#33; Exclamation mark
" &#34; Quotation mark
# &#35; Number sign
$ &#36; Dollar sign
¢ &cent; &#162; Cent sign
&euro; &#8364; Euro sign
£ &pound; &#163; GBP sign
¥ &yen; &#165; Yen sign
% &#37; Percent sign
& &amp; &#38; Ampersand
' &#39; Apostrophe
( &#40; Opening/Left Parenthesis
) &#41; Closing/Right Parenthesis
* &#42; Asterisk
+ &#43; Plus sign
, &#44; Comma
- &#45; Hyphen
. &#46; Period
/ &#47; Slash
© &copy; &#169; Copyright
® &reg; &#174; Registered Trademark
" &quot; &#34; double quotation mark
> &gt; &#62; Greater-than sign
< &lt; &#60; Less-than sign
&bull; &#8226 Bullet point

More Information:

There are plenty of HTML entites references out there; some examples are: