<html>
    <link rel="stylesheet" href="style.css">
    <body>
        body親要素16px
        <p>p子要素12px<br><a>a孫要素12px</a></p>
        <div>div子要素12px</div>
       <h2>h2子要素12px</h2>
    </dody>
</html>
body{font-size:16px} /*本文の文字サイズ*/
h2{font-size:12px;}
p{font-size:12px;}
a{font-size:12px;}
div{font-size:12px;}
h2{font-size:12px;}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.