Horje
Some Useful HTML Character Entities

Some Useful HTML Character Entities

Result Description Name Number  
  non-breaking space    
< less than < <
> greater than > >  
& ampersand & &
" double quotation mark " "
' single quotation mark ' '
¢ cent ¢ ¢
£ pound £ £
¥ yen ¥ ¥
euro
© copyright © ©
® trademark ® ®

Note

Entity names are case sensitive.


Display a none-breaking-space

non-breaking space &nbsp; &#160;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>A space character: &nbsp;</h2>

</body>
</html>

Output should be:

Display a none-breaking-space

Display a less-than sign

< less than &lt; &#60;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The less-than sign: &lt;</h2>

</body>
</html>

Output should be:

Display a less-than sign

Display a greater-than sign

> greater than &gt; &#62;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The greater-than sign: &gt;</h2>

</body>
</html>

Output should be:

Display a greater-than sign

Display an ampersand

" double quotation mark &quot; &#34;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The ampersand (and) sign: &amp;</h2>

</body>
</html>

Output should be:

Display an ampersand

Display an apostrophy sign

' single quotation mark &apos; &#39;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The single quote sign: &apos;</h2>

</body>
</html>

Output should be:

Display an apostrophy sign

Display a cent sign

¢ cent &cent; &#162;
Display a cent sign
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The cent sign: &cent;</h2>

</body>
</html>

Output should be:

Display a cent sign

Display a pound sign

£ pound &pound; &#163;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The pound sign: &pound;</h2>

</body>
</html>

Output should be:

Display a pound sign

Display the yen sign

¥ yen &yen; &#165;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The yen sign: &yen;</h2>

</body>
</html>

Output should be:

Display the yen sign

Display a euro sign

euro &euro; &#8364;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The euro sign: &euro;</h2>

</body>
</html>

Output should be:

Display a euro sign

Display a copyright sign

© copyright &copy; &#169;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The copyright sign: &copy;</h2>

</body>
</html>

Display the registered trade mark sign

® trademark &reg; &#174;
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Entity Example</h1>

<h2>The registered trade mark sign: &reg;</h2>

</body>
</html>

Output should be:

Display the registered trade mark sign





Related Articles
What is HTML Entities HTML Entities
How to use HTML Character Entities HTML Entities
How to add Non-breaking Space HTML Entities
Some Useful HTML Character Entities HTML Entities
How to combinine Diacritical Marks HTML Entities

Single Articles
Display a none-breaking-spaceHTML Entities
Display a less-than signHTML Entities
Display a greater-than signHTML Entities
Display an ampersandHTML Entities
Display an apostrophy signHTML Entities
Display a cent signHTML Entities
Display a pound signHTML Entities
Display the yen signHTML Entities
Display a euro signHTML Entities
Display a copyright signHTML Entities
Display the registered trade mark signHTML Entities

Read Full:
HTML Entities
Category:
Web Tutorial
Sub Category:
HTML Entities
Uploaded by:
Admin
Views:
70


Reffered: https://www.w3schools.com/html/html_entities.asp