How to adjust the font size with the font-size-adjust attribute
The below HTML and CSS code example shows you how to adjust the font size with the font-size-adjust attribute.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>this is the title of the web page</title>
<style type="text/css">
</style>
</head>
<body>
<p>
This is a paragraph with a normal font size.
</p>
<p style="font-size-adjust: 0.50;">
This is a paragraph with a font-size-adjust value of 0.50.
</p>
<p style="font-size-adjust: 0.70;">
This is a paragraph with a font-size-adjust value of 0.70.
</p>
</body>
</html>
The above HTML and CSS code makes the paragraphs below.
This is a paragraph with a normal font size.
This is a paragraph with a font-size-adjust value of 0.50.
This is a paragraph with a font-size-adjust value of 0.70.
Use the text editor below to practice setting a setting the font size of text with the font-size-adjust attribute.