Search the web...

 

Google

 
Home Feedback About me
Few programming language tutorials
Source codes
Network security
Technology news
Space updates
Jokes
 
select a category to access the tutorials
| HTML | CSS | JAVASCRIPT |

Character formatting Tags


This document describes tags used to design and implement interactive forms on a web page.
This table:
Support:  HTML:2.0, 3.0, 3.2  Netscape:1.1+  MS Explorer:1.0+

and these icons:

(HTML 3.0 Only) (HTML 3.2 Only) (Netscape Extension) (Microsoft Extension) (Microsoft Extension 3.0)

alert you to tags and attributes that are not supported by all browsers.
 


Address

<ADDRESS> text </ADDRESS>
(HTML 3.0 Only) <ADDRESS NOWRAP> text </ADDRESS>

The address tag defines text that gives an address or other contact information. It is typically displayed in italics, slightly indented, and is used by automatic indexers. The NOWRAP attribute stops the browser from wrapping except where <BR>'s are.

Big Text

Support:  HTML:3.2  Netscape:2.0+  MS Explorer:3.0+

<BIG> text </BIG>

The big text tag defines text that should be displayed in a larger font than usual.

Bold

<B> text </B>

The bold tag defines text that should be shown in boldface. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Citation

<CITE> text </CITE>

The citation tag defines text that cites a book or other work -- most browsers will display it in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Code

<CODE> text </CODE>

The code tag defines text that should be shown in a fixed width font. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag. Many browsers use the same font for the KBD, SAMP, TT and CODE tags. For many lines of fixed width text, with the line breaks and other whitespace specified by the page author, use the PRE tag.

Definition

Support:  HTML:3.2  Netscape:No Support  MS Explorer:2.0+

<DFN> text </DFN>

The definition tag defines text that defines a term -- many browsers will display it in italics, though others will ignore it. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Emphasized

<EM> text </EM>

The emphasized tag defines text that should be emphasized -- most browsers will display it in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Example

<XMP> text </XMP>

The example tag introduces example text. Because of the way this tag handles embedded tags, it should no longer be used. PRE or SAMP are better choices.

Font

Support:  HTML:3.2  Netscape:1.1+  MS Explorer:2.0+

<FONT SIZE=number>
<FONT COLOR="#RRGGBB">
<FONT COLOR="colorname">
(Microsoft Extension)(Netscape Extension) <FONT FACE="facename1, facename2...">

The font tag defines text with a smaller or larger font than usual. The normal font size corresponds to 3; smaller values of number will produce a smaller font, and larger values of number will produce a larger font. If number has a sign (for example +1), the font will be changed relative to the BASEFONT.

The COLOR attribute allows you to change the colour of the text. rrggbb is a six digit hexadecimal number with the first two digits specifying the red value, the middle two the green value, and the last two the blue value. Some sample colour values:

red
FF0000
green
00FF00
blue
0000FF
black
000000
white
FFFFFF
grey
888888
yellow
FFFF00
cyan
00FFFF


Colour names can also be used in the COLOR attribute. Valid colours are: Aqua, Black, Blue, Fuchsia, Gray, Green, Lime, Maroon, Navy, Olive, Purple, Red, Silver, Teal,Yellow, and White.

(Microsoft Extension)(Netscape Extension) The FACE attribute specifies the face to be used, such as Arial or Courier. If multiple names are specified, the first one listed that is installed on the client machine is used.

Italic

<I> text </I>

The italic tag defines text that should be shown in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Keyboard

<KBD> text </KBD>

The keyboard tag defines text that should be shown in a fixed width font. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag. Many browsers use the same font for the KBD, SAMP, TT and CODE tags. For many lines of fixed width text, with the line breaks and other whitespace specified by the page author, use the PRE tag.

Listing

<LISTING> text </LISTING>

The listing tag introduces a program listing. Because of the way this tag handles embedded tags, it should no longer be used. PRE is a better choice.

Sample

<SAMP> text </SAMP>

The sample tag defines text that should be shown as literal characters in a fixed width font. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag. Many browsers use the same font for the KBD, SAMP, TT and CODE tags. For many lines of fixed width text, with the line breaks and other whitespace specified by the page author, use the PRE tag.

Small Text

Support:  HTML:3.2  Netscape:2.0+  MS Explorer:3.0+

<SMALL> text </SMALL>

The small text tag defines text that should be displayed in a smaller font than usual.

Strikethrough

<STRIKE> text </STRIKE>

The strikethrough tag defines text that should be shown with a horizontal line through it. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Strong

<STRONG> text </STRONG>

The strong tag defines text that should be strongly emphasized -- most browsers will display it in boldface. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.

Subscript

Support:  HTML:3.2  Netscape:2.0+  MS Explorer:3.0+

<SUB> text </SUB>

The subscript tag defines text that should be displayed in a smaller font than usual, lower on the line than usual.

Superscript

Support:  HTML:3.2  Netscape:2.0+  MS Explorer:3.0+

<SUP> text </SUP>

The superscript tag defines text that should be displayed in a smaller font than usual, higher on the line than usual.

Teletype

<TT> text </TT>

The teletype tag defines text that should be shown in a fixed width font. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag. Many browsers use the same font for the KBD, SAMP, TT and CODE tags. For many lines of fixed width text, with the line breaks and other whitespace specified by the page author, use the PRE tag.

Underlined

<U> text </U>

The underlined tag defines text that should be shown with a line underneath it. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag. Many browsers, including some versions of Netscape, do not support this tag.

Variable

<VAR> text </VAR>

The variable tag defines text that represents a variable-- most browsers will display it in italics. It can be nested with other idiomatic or typographic tags but some browsers will respect only the innermost tag.
 

Tables tags | Lists tags | Old HTML tags | Top level tags | Character formatting tags | Block formatting tags | Misc Tags

TOP

HTML  |  CSS  |  JAVASCRIPT
 
Internet Super Search

Bravenet Web Services

 

Host your web sites here with no cost. Register your free web space now!!!