<html>
<link rel="stylesheet" href="style.css">
<body>
body親要素160%
<p>p子要素120%<br><a>a孫要素120%</a></p>
<div>div子要素1.2em</div>
<h2>h2子要素120%</h2>
</dody>
</html>
html{font-size: 100%;}
body{font-size:160%} /*本文の文字サイズ*/
h2{font-size:120%;}
p{font-size:120%;}
a{font-size:120%;}
div{font-size:1.2em;}
h2{font-size:120%;}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.