Try the HTML5 Course for Free!

Special Characters in HTML – Tutorial

/ / HTML, Latest

Special Characters in HTML: Video Lesson

            This video lesson, titled “Special Characters,” shows you how to add special characters in HTML. This video lesson about special characters in HTML is from our complete Introductory HTML5 and CSS3 course, titled “Mastering HTML5 and CSS3 Made Easy v.1.0.”

Special Characters in HTML: Overview

            There are times when it becomes necessary to display symbols or special characters in HTML that are not available on a standard keyboard, such as ©. You may also need to display special characters in HTML that have a special meaning in HTML (<,>,&, etc). To accomplish this, HTML uses the Special Character Entity tag.

            To add special characters in HTML, type an ampersand (&), followed by the pound sign (#), followed by the number of the code, and ended with a semicolon (;). For example, the © (copyright) symbol can be displayed by using &#169;. There are literally hundreds of special character entities currently available. A few of the more common tags are listed in the table below.

Description Special Character Code
Acute Accent ´ &#180;
Ampersand & &#38;
Cent Sign ¢ &#162;
Copyright © &#169;
Dagger &#8224;
Degree Sign ° &#186;
Division Sign ÷ &#247;
Euro &#8363;
Fraction (one-half) ½ &#189;
Fraction (one-fourth) ¼ &#188;
Fraction (three-fourths) ¾ &#190;
Greater-than sign > &#62;
Left-angle quote « &#171;
Less-than sign < &#60;
Multiply sign x &#215;
Plus or minus sign ± &#177;
Quotation Mark (left) &#8220;
Quotation Mark (right) &#8221;
Registered Trademark ® &#174;
Right-angel quote » &#187;
Superscript one ¹ &#185;
Trademark &#8482;

Special Characters in HTML- Tutorial: A picture of an HTML5 document that shows how to code special characters in HTML.

Special Characters in HTML- Tutorial: A picture of an HTML5 document that shows how to code special characters in HTML.

Special Characters in HTML: Instructions

  1. To add special characters in HTML, type an ampersand followed by a pound sign (&#) at the place within your HTML document where you want to add a special character
  2. Type the number of the proper code for the character to add.
  3. Type a semicolon (;) to finish.
TOP