Special Characters and Symbols
Special Characters and Symbols
Special Characters and Symbols not found on the average keyboard can be inserted using special
character entities. These special characters are specified in an internationally accepted character
set known as the ISO- Latin-1 (ISO-8859-1).
These characters are recognized in HTML as they begin with an ampersand and end with a semi-
colon e.g. &value; the value will either be an entity name or a standard ASCII character number.
The following table represents some of the more commonly used special Characters:-
Subscript: The <sub> tag is used to add a subscript text to the HTML document. The <sub> tag
defines the subscript text. Subscript text appears half a character below the normal line and is
sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like
H2O to be written as H2O.
Superscript: The <sup> tag is used to add a superscript text to the HTML document. The <sup>
tag defines the superscript text. Superscript text appears half a character above the normal line
and is sometimes rendered in a smaller font. Superscript text can be used for footnotes.
Example:
<P><STRIKE> strike-through text </STRIKE><BR>
<BIG> places text in a big font </BIG><BR>
<SMALL> places text in a small font </SMALL><BR>
<SUB> places text in subscript position </SUB> Normal
<SUP> places text in superscript style position</SUP><BR>
</P>
<BASEFONT>
Used to set the base font size. The size attribute is an integer value ranging from 1 to 7. The base
font applies to the normal and preformatted text but not to headings, except where these are
<BLOCKQUOTE>
This element is used to enclose block quotations from other works or to indent sections of a
document. (It indents from both sides in a browser)
This element can also contain most other formatting elements such as Headings, paragraphs,
tables, etc.
</BLOCKQUOTE>
<ADDRESS>
The address element specifies information such as authorship and contact details for the current
document. There is no support for an alignment attribute with the <ADDRESS> element. You
will need to use some other method if you want the address displayed differently from left
aligned.
</ADDRESS>
Review Questions
<p>©:copyright sign</p>
<p>®:registered sign</p>
<p>&trade:trade mark symbol</p> or ™ or ™
<p>&euro:euro sign </p> or €
Note: To create HTML page footer use the opening and closing footer tag.
<Footer>footer information</footer>
Example: