Set font size to 90% for paragraph in HTML and CSS

Description

The following code shows how to set font size to 90% for paragraph.

Example


<!--from   w ww  .  j ava 2 s . c  o m-->



<html>
<head>
<title>Set font size to 90% for <P></title>
<style type="text/css">
p {
font-size: 90%;
}
</style>
</head>
<body>
<h1>Title of Page</h1>
<p>This is a sample paragraph with a
<a href="http://www.java2s.com">link</a>.</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Set font size to 90% for paragraph in HTML and CSS