Character Fromatting
Assignment 4 - CIS89a
In this assignment, we are to create a Web page ( this here page ) that demonstrates our
knowledge of different kinds of lists and character formatting tags used in HTML.
Because it is an exercise, it may seem alittle odd, but then, I like odd.
You may want to have a look at the
lecture notes or the actual
assignment.
[ Header Formats ]
[ Logical Styles ]
[ Physical Styles ]
[ Special Characters ]
Header Formats
This is a demonstation of all of the different types of headers used in HTML. The
heading of this section is a level 1 header. Here are the rest, including a level
7 header, which doesn't really exist :
This is a sample of a level 2 header
This is a sample of a level 3 header
This is a sample of a level 4 header
This is a sample of a level 5 header
This is a sample of a level 6 header
This is a sample of a level 7 header
Nice, huh? Notice that since there is no such thing as a level 7 header, it appears
in the default size used for the rest of the page.
Top of the page
Logical Styles
The following is a list of Logical styles used in HTML including a demonstration of each.
The styles appear in an ordered list numbered with arabic numerals.
- Address tag : <ADDRESS> ... </ADDRESS>
This is a tag used for address data, such as e-mail or
a Web page reference. The text usually appears in italics.
- Blockquote tag : <BLOCKQUOTE> ... </BLOCKQUOTE>
This is a tag used for a long quotation. It is intended to set
the quotation off from the rest of the page by indenting it from
the left and right margines. You will notice how this section is
formatted.
- Cite tag : <CITE> ... </CITE>
This is a tag used for a citation, such as bibliographical reference.
This text also is usually shown in italics.
- Code tag : <CODE> ... </CODE>
This is a tag used for computer code examples. It shows the text in monofont,
like this :
int main ( void )
{
printf ( "Hello World!" ) ;
return 0 ;
}
It still requires the line break tag to show separate lines and some other
tricks to show indentation.
- Emphasis tag : <EM> ... </EM>
This is a tag used for emphasized text. Such text is usually shown in
italics.
- Preformat tag : <PRE> ... </PRE>
This is a
tag used for
preformatted text. It also shows
the text in
monofont, but preserves the
spaces and line feeds,
making it much easier to
do this kind of thing.
- Strong tag : <STRONG> ... </STRONG>
This is a tag used for strongly emphasized text. It usually
presents the text in bold font.
- Teletype tag : <TT> ... </TT>
This is a tag used for teletype. It also shows the text
in monofont.
- Variable tag : <VAR> ... </VAR>
This is a tag used for an emphasis tag inside the code or
preformatted text tags. VAR is short for variable - the names
of variables are often emphasized in code examples. The text is
often shown in italics.
Top of the page
Physical Styles
The following is a list of Physical styles used in HTML. A demonstration of each
is given on the line following the list entry. The list is an ordered list that uses
upper case labels for the items.
- Bold tag : <B> ... </B>
This tag is used to make text appear bold, like this.
- Big tag : <BIG> ... </BIG>
This is an interesting tag. After each use, it ingreases the size
of the text up to the maximum size of 7.
- Small tag : <SMALL> ... </SMALL;gt;
This tag is like the 'BIG' tag, except it makes the text get smaller
and smaller down to the minimum size of 1.
- Blink tag : <BLINK> ... </BLINK>
- Italic tag : <I> ... </I>
Italics were invented by the Italians. Who'da thunk it...
- Strike tag : <S> ... </S>
-or- <STRIKE> ... </STRIKE>
This tag is used to strike-through text.
- Subscript tag : <SUB> ... </SUB>
This tag is used for subscripts
- Superscript tag : <SUP> ... </SUP>
This tag is used for superscripts
- Underlined tag : <U> ... </U>
This tag is used to underline text.
Note that logical styles are often prefered over Physical styles
because logical styles leave the rendering of the text up to the browser.
Many people still use Physical styles, however, because of the explicit control over the output.
Top of the page
Special Characters
Because HTML uses certain characters to format text and to convey meaning to the
browser, it is often necessary to use special characters to display these characters
in a Web page. They can also be useful for displaying certain characters that are not
included on most keyboards. These special characters can always be denoted with their
numeric values, and sometimes be specified by certain strings. I've shown both in the
following unordered list of such special characters :
- Less Than
Tag : < -or- <
Character : <
- Greater Than
Tag : > -or- >
Character : >
- Ampersand
Tag : & -or- &
Character : &
- Non-breaking Space
Tag :   -or-
Character :
| | ( There are 5 non-breaking spaces here )
- Currency
Tag : ¤ -or- ¤
Character : ¤
- British Pound
Tag : £ -or- £
Character : £
- Japanese Yen
Tag : ¥ -or- ¥
Character : ¥
- Cent Sign
Tag : ¢ -or- ¢
Character : ¢
- Double Quotation Mark
Tag : " -or- "
Character : "
- Degree Sign
Tag : ° -or- °
Character : °
- Plus-or-Minus Sign
Tag : ± -or- ±
Character : ±
- Superscript 1
Tag : ¹ -or- ¹
Character : ¹
- Superscript 1
Tag : ² -or- ²
Character : ²
- Superscript 1
Tag : ³ -or- ³
Character : ³
- Fraction 1/4
Tag : ¼ -or- ¼
Character : ¼
- Fraction 1/2
Tag : ½ -or- ½ -or- ½
Character : ½
- Fraction 3/4
Tag : ¾ -or- ¾
Character : ¾
- Micro Sign
Tag : µ -or- µ
Character : µ
- Copyright Sign
Tag : © -or- ©
Character : ©
- Registered Trademark Sign
Tag : ® -or- ®
Character : ®
- Paragraph Sign, Pilcrow Sign
Tag : ¶ -or- ¶
Character : ¶
- Section Sign
Tag : § -or- §
Character : §
- Inverted Question Mark
Tag : ¿ -or- ¿
Character : ¿
- Inverted Exclamation Mark
Tag : ¡ -or- ¡
Character : ¡
- Umlaut
Tag : ¨ -or- ¨ -or ¨
Character : ¨
Top of the page
skooter@inow.com
My Home Page
Last Update: June 13, 1999