Set the font size for the page to "20px", and the font size for <h1> to "3em". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the font size for the page to "20px", and the font size for <h1> to "3em".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
body {<!-- ww  w.j  a  v a  2 s  .  c  om-->
    font-size: 20px;
}

h1 {
    font-size: 3em;
}
</style>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Related Tutorials