0% found this document useful (0 votes)
69 views4 pages

Special Characters and Symbols

The document discusses HTML special characters and symbols that are not found on a standard keyboard. It provides the entity name and encoding for commonly used special characters, and describes formatting elements like <BIG>, <SMALL>, <SUB>, and <SUP> for styling text. The document also covers other elements like <BLOCKQUOTE>, <ADDRESS>, and <FOOTER>.

Uploaded by

Anne Anziya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views4 pages

Special Characters and Symbols

The document discusses HTML special characters and symbols that are not found on a standard keyboard. It provides the entity name and encoding for commonly used special characters, and describes formatting elements like <BIG>, <SMALL>, <SUB>, and <SUP> for styling text. The document also covers other elements like <BLOCKQUOTE>, <ADDRESS>, and <FOOTER>.

Uploaded by

Anne Anziya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Special Characters & Symbols 2023

HTML Special Characters & 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:-

Special Character Entity Name


ampersand &amp
asterisk &lowast
cent sign &cent;
copyright &copy
fraction one qtr &frac14
raction one half &frac12
greater-than sign &gt
less-than sign &lt
non-breaking space &nbsp
quotation mark &quot
registration mark &reg
trademark sign &#8482

Additional Character Formatting Elements

<STRIKE>>strike-through text </STRIKE>

<BIG> places text in a big font </BIG>

©Juliet 2023 Page 1


Special Characters & Symbols 2023

<SMALL> places text in a small font <SMALL>

<SUB> places text in subscript position </SUB>

<SUP> places text in superscript style position</SUP>

Subscript and Superscript Tags

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

©Juliet 2023 Page 2


Special Characters & Symbols 2023

modified using the FONT element with a relative font size.


</BASEFONT>

<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

1. What are six elements for formatting characters?


2. What are two methods for centering text?
3. How would you add the copyright and trademark symbols to a page?
4. Type the HTML code below and open the page using a web browser:-
<html>
<title>symbols</title>
</head>
<body>
<p><i><b>Displaying special characters using HTML</p></b></i>

©Juliet 2023 Page 3


Special Characters & Symbols 2023

<p>&copy:copyright sign</p>
<p>&reg:registered sign</p>
<p>&trade:trade mark symbol</p> or &trade; or &#8482;
<p>&euro:euro sign </p> or &#128;

Note: To create HTML page footer use the opening and closing footer tag.

Footer tag syntax:-

<Footer>footer information</footer>

Example:

<footer> page created by Janet on 1<sup>1</sup>2022 &copy</footer>

©Juliet 2023 Page 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy