Page 88 - CA_165_V2.0_Flipbook
P. 88
Special Characters
There may be a need to add special symbols like the left angle bracket (<), the right angle bracket (>), or
the ampersand (&) on a web page. HTML treats these symbols as part of the code if added directly. To
display them correctly, we can use <, >, and & respectively. These symbols are also called as
character entities.
The following table lists all the commonly used HTML character entities, their symbol, HTML code, and
a description of their purpose:
Symbol HTML Code Description
< < Less-than sign (<)
> > Greater-than sign (>)
& & Ampersand (&)
" " Double quotation mark (")
‘ ' Single quotation mark (')
Space Non-breaking space
© © Copyright symbol (©)
To display the less-than symbol (<), greater-than symbol (>), and ampersand (&) on a webpage,
use HTML entities:
< - Left Angle Bracket
> - Right Angle Bracket
& - Ampersand
The following HTML code uses these special characters to display them on the web page:
<HTML>
<HEAD>
<TITLE>Special Characters Example</title>
</HEAD>
<BODY>
<h1>Displaying Special Characters in HTML</h1>
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
86 Touchpad Computer Applications-X

