Example -
Style Attribute : font-family

Previous page...

The font-family can be used to control the style of the text
on your web page.

sans-serif

serif

cursive

fantasy

monospace


This can also be combined with controlling the colour,
using the style attribute.

sans-serif Orange

serif Red

cursive Blue

fantasy Green

monospace Teal

The HTML

<html>

<head>
	<title>Style Attribute : font-family</title>
</head>

<body>

The font-family can be used to control the style of the text on your web page.

<p style="font-family : sans-serif;">sans-serif

<p style="font-family : serif;">serif

<p style="font-family : cursive;">cursive

<p style="font-family : fantasy;">fantasy

<p style="font-family : monospace;">monospace

<p><hr color="Teal" noshade>

<p>This can also be combined with controlling the colour,
using the style attribute.

<p style="font-family : sans-serif; color:Orange;">sans-serif Orange

<p style="font-family : serif; color : Red;">serif Red

<p style="font-family : cursive; color : Blue;">cursive Blue

<p style="font-family : fantasy; color : Green;">fantasy Green

<p style="font-family : monospace; color : Teal;">monospace Teal

</body>

</html>	
		

© 2003 Ashley Preston 

Computeach International Ltd