Set font size to 150% larger in HTML and CSS

Description

The following code shows how to set font size to 150% larger.

Example


<html>
<head>
<!--from   w ww  .  jav  a2 s. co m-->
<style type='text/css'>
body {
font-size: 150%;
}
</style>
</head>
<body>
This font is 150% of the size of the user's font size preferences.
<p>
This font is 100% of the size of the font used for the &lt;body&gt; element.
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font size to 150% larger in HTML and CSS