Using physical styles allows a page designer to take control over many details of the page appearance,including type style,size and color.
| Text formatting | Strikethrough | Variations |
| Sup&subScripts | Font | basefont |
<B> tag is used for making the text bold.
<I> tag marks italicized text.
<U> tag marks text to be underlined.
This is the syntax for the above mentioned tags:
<B>Bold</B>
<I>Italic</I>
<U>Underline</U>Hint
<B> and <I> are not deprecated in HTML 4.0 standard,but <U> is deprecated.
Strikethrough text is more used often in traditional word processing than in HTML pages.It indicates text that has been deleted but is still left on the page for review.
Following is the syntax:
<strike>Text</strike>
Included in HTML4.0 specification are this tags that can indicate text to be bigger or smaller than the default size.
The syntax is <big> and <small>.
By using <big> tag we get the text format as
He is big. By using <small> tag we get the text format as
He is small.
| Text formatting | Strikethrough | Variations |
| Sup&subScripts | Font | basefont |
A superscript is text set slightly higher than the base text.Its syntax is <sup>text</sup>.
A subscript is text set slightly lower than the base text.Its syntax is <sub>text</sub>.
The font element is used to change the basic font characteristics-typeface,size and color of blocks of text.It's use in HTML4.0 is deprecated in favour of stylesheets.
Face attribute is used to specify one or more type faces for the browser to be used.The syntax:
<font face="arial,courier">text</font>.
Font size is the tag that sets the size of the tag's contents.
The syntax is:
<font size =number >Text</font>.
Font color is the tag used to set the color of the text.
The syntax is:
<font color=name|RGBvalue>text</font>.
| Text formatting | Strikethrough | Variations |
| Sup&subScripts | Font | basefont |
The basefont element gives you a way to set the base size,color and font of the body text.The syntax is:
<BASEFONT size=number(1 to 7) face="arial,courier" color=name|RGBvalue>.
Here is a simple example:
If <BASEFONT size=1 face=courier color=red>.
What you see is:
RED If <BASEFONT size=7 face=arial color=blue>.
What you see is:
BLUE.
This tag is deprecated in HTML4.0; but while it remains in use,it does support the core,international and event handler attributes.
Top of this page
| Home | Overview | W3C | HTML4.0 | Introduction | Structure | Interactivity |
| Table | Forms | CSS | Scripting | Frameset | XML | Advanced Technique |