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

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.