Specify font size using CSS

Explanation

To specify font size using CSS, use the font-size property. The font-size can either be specified in units of pixels or points. When users specify px (pixel) for unit in Internet Explorer, the font size will not change and remain fixed font size even if they handle an enlargement of font size and etc.. Therefore accessibility may decrease.

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
<style type="text/css"><!--
p {
font-size:18pt;
}
--></style>
</head>
<body>
<h1>Sample</h1>
<p>
If using CSS, you can specify even font sizes as you like.
</p>
</body>
</html>