The font style elements are used to offset default or styles sheet based font rendering.

In respective order, the meanings of the font syling elements are:

  • TT => teletype or monospaced text;
  • I => italic text style;
  • B => bold text style;
  • BIG => text in a "larger" font;
  • SMALL => text in a "smaller" font.

Rendering itself will depend on user agents (browsers).

Same as phrasing, font styling can be achieved in a richer fashion by using style sheets.

It's worth mentioning that elements <strike>, <u>, <font> and <basefont> have been deprecated.

Syntax:

<tt></tt>, <i></i>, <b></b>, <big></big>, <small></small>

Attributes:

Example

HTML font styling elements:

x
 
<html>
<head>
<title>HTML tutorial</title>
</head> 
<body>
<p><b>Brenkoweb.com</b> is a <i>cool</i> site</p>
<p>It talks about <big>BIG</big> and <small>SMALL</small> things</p>
<p>Written by:<br />
<tt>brenkoweb.com</tt></p>
</body>
</html>

 

›› go to examples ››