How to Display Symbols with HTML

Solution with HTML entities

many symbols can well be displayed with HTML entities .
In this snip, you can see examples of displaying eternity, ampersand, caret, less than and more than, ampere well as copyright, and other symbols .
To display an eternity symbol, use an HTML entity : ∞ or ∞ .

Example of displaying an infinity symbol:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' title>

< p class= '' hljs-name '' heading>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
This is an example, which is used to display an infinity
symbol ∞ ( &infin;) using HTML. Also, you can use this
version of the infinity symbol ∞ ( &#8734;).
< phosphorus class= '' hljs-name '' phosphorus>
< p class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display an ampersand, use the follow : & or & .

Example of displaying an ampersand:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' claim>

< p class= '' hljs-name '' principal>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>To display an ampersand &, use the following entity: &amp;. Or, you can also use &#38;. < phosphorus class= '' hljs-name '' p>
< phosphorus class= '' hljs-name '' soundbox>
< p class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display a caret character, use the take after : ▲ or ▼ .

Example of displaying a caret character:

 
 < 

html

> <

head

> <

title

>Title of the document < p class= '' hljs-name '' deed>

< p class= '' hljs-name '' capitulum>
<

body

>
<

h1

>This is a heading < phosphorus class= '' hljs-name '' h1>
<

p

>To display a caret character, you can use ▲ or ▼. Choose the one you need. < phosphorus class= '' hljs-name '' p>
< p class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display “ less than ” and “ greater than ” symbols, use < ( < ) and > ( > ), respectively .

Example of displaying “less than” and “greater than” symbols:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' claim>

< phosphorus class= '' hljs-name '' steer>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>Example of using the “less than” < and "more than" > symbols. < p class= '' hljs-name '' p>
< p class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display a “ copyright ” symbol, use the follow : © or © .

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' title>

< phosphorus class= '' hljs-name '' head>
<

body

>
<

h1

>This is a heading < phosphorus class= '' hljs-name '' h1>
<

p

> Example of using the “copyright” symbol. To display it, use &copy; or &#169;. < p class= '' hljs-name '' phosphorus>
< phosphorus class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

Use ‘ or ‘ to display a left one quotation scar, and ’ or ’ for the right single citation score .

Example of displaying left and right single quotation marks:

 
 < 

html

> <

head

> <

title

>Title of the document < p class= '' hljs-name '' championship>

< phosphorus class= '' hljs-name '' pass>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
Example of using left and right single quotation marks. To display them,
use &lsquo; or &#8216; for the left and &rsquo; or &#8217;
for the right single quotation marks.
< phosphorus class= '' hljs-name '' phosphorus>
< phosphorus class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

Use “ or “ to display a leave double citation mark, and ” or ” for the right doubling quotation mark .

Example of displaying left and right double quotation marks:

 
 < 

html

> <

head

> <

title

>Title of the document < p class= '' hljs-name '' title>

< p class= '' hljs-name '' head>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
Example of using left and right double quotation marks. To display them,
use &ldquo; or &#8220; for the left and &rdquo; or ” for t
he right double quotation marks.
< phosphorus class= '' hljs-name '' p>
< phosphorus class= '' hljs-name '' body>
< p class= '' hljs-name '' hypertext markup language>
Try it Yourself »

Use ← or ← to display left arrow, and → or → for the correct arrow .

Example of displaying left and right arrows:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' title>

< p class= '' hljs-name '' promontory>
<

body

>
<

h1

>This is a heading < phosphorus class= '' hljs-name '' h1>
<

p

>
Example of using left and right arrows. To display them,
use &larr; or &#8592; for the left and &rarr; or &#8594;
for the right arrow.
< p class= '' hljs-name '' phosphorus>
< p class= '' hljs-name '' body>
< p class= '' hljs-name '' hypertext markup language>
Try it Yourself »

Use ↑ or ↑ to display the up arrow, and ↓ or ↓ for the down arrow .

Example of displaying left and right arrows

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' championship>

< phosphorus class= '' hljs-name '' principal>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
Example of using up and down arrows. To display them,
use &uarr; or &#8593; for the up arrow and &darr; or &#8595;
for the down arrow.
< phosphorus class= '' hljs-name '' phosphorus>
< phosphorus class= '' hljs-name '' soundbox>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display a “ trademark ” symbol, use ™ or ™ .

Example of displaying a “trademark” symbol:

 
 < 

html

> <

head

> <

title

>Title of the document < p class= '' hljs-name '' deed>

< p class= '' hljs-name '' head>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
Example of using a “trademark” symbol. To display it, use &trade; or &#8482;.
< p class= '' hljs-name '' p>
< phosphorus class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display a “ registered brand ” symbol, use ® or ® .

Example of displaying a “registered trademark” symbol:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' title>

< p class= '' hljs-name '' pass>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
Example of using a “registered trademark” symbol. To display it, use &reg; or &#174;.
< p class= '' hljs-name '' p>
< phosphorus class= '' hljs-name '' torso>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To display a heart, use ♥ or ♥ .

Example of displaying a heart:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' title>

< phosphorus class= '' hljs-name '' head>
<

body

>
<

h1

>This is a heading < phosphorus class= '' hljs-name '' h1>
<

p

>
To display a heart, use &#9829; or &hearts;.
< p class= '' hljs-name '' phosphorus>
< phosphorus class= '' hljs-name '' body>
< phosphorus class= '' hljs-name '' hypertext markup language>
Try it Yourself »

To add a non-breaking distance, use .

Example of displaying a non-breaking space:

 
 < 

html

> <

head

> <

title

>Title of the document < phosphorus class= '' hljs-name '' championship>

< p class= '' hljs-name '' drumhead>
<

body

>
<

h1

>This is a heading < p class= '' hljs-name '' h1>
<

p

>
To display a non-breaking space, use &nbsp;.
< phosphorus class= '' hljs-name '' p

>
< phosphorus class= '' hljs-name '' body>
< p class= '' hljs-name '' hypertext markup language>
Try it Yourself »

See how to display many other symbols here .

Leave a Comment