Set font size to 1.2em in HTML and CSS

Description

The following code shows how to set font size to 1.2em.

Example


<html>
<head>
<style type="text/css">
p .initcap {<!--from  ww w. j a  v  a 2  s.c  om-->
font-size: 1.2em;
background-color: black;
color: white;
}
</style>
</head>

<body>
<p><span class="initcap">O</span>nline. This is a test. This is a test.
This is a test. This is a test. This is a test. This is a test. This is a test.
This is a test. This is a test. This is a test. This is a test. This is a test. </p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font size to 1.2em in HTML and CSS