Set font size to medium and larger in HTML and CSS

Description

The following code shows how to set font size to medium and larger.

Example


<html>
<head>
<style type='text/css'>
body {<!--   w ww .  j  a  v  a 2s.  c om-->
font-size: medium;
}
p {
font-size: larger;
}
</style>
</head>
<body>
This font is medium in size.
<p>
this is a test.
<span style='font-size: large;'>this is a test. </span>
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font size to medium and larger in HTML and CSS