If no style is specified for the text contained by the <body>..</body>
tag, the text will be rendered as a default settings.
The text style can be changed using the following physical styles.
Properties | Description |
---|---|
<b> | Bold contents |
<big> | Increased font size |
<blink> | Alternating fore- and background colors |
<font> | Specifies smaller or larger text. Requires "size" attribute * |
<i> | Italic contents |
<small> | Decreased font size |
<s> or <strike> | Strike-through text |
<sub> | Subscripted text |
<sup> | Superscripted text |
<tt> | Teletypewriter style |
<u> | Underlined contents |
The text inside <b>
..</b>
block is rendered in the <b>
bold text<b>
style.
The text inside <big>
..</big>
block is rendered with the <big>
bigger<big>
font.
<blink>
..</blink>
block just blink on and blink off <blink>
blink<blink>
.
The text inside <font>
..</font>
block needs the <b>
size</b>
attribute to specify how much larger or smaller the contained text should be than the surrounding text.
The text inside <i>
..</i>
block is used to render text in the <i>
italic</i>
style.
The text inside <small>
..</small>
block is rendered with a <small>
smaller</small>
font than the current font.
The text inside <strike>
..</strike>
block is rendered as <strike>
strike-through <strike>
text style.
The text inside <sub>
..</sub>
element is rendered with <i>
subscript<i>
text style.
The text inside <sup>..</sup>
element is rendered with <i>superscript<i>
text style.
The text inside <tt>..</tt>
element is rendered with <i>teletype<i>
or mono-spaced text style.
The text inside <u>..</u>
element is rendered with <i>underlined<i>
text style.