Set the font family for the page to "Courier New", and the font family for <h1> to "Verdana". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the font family for the page to "Courier New", and the font family for <h1> to "Verdana".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
body {<!--from ww  w  .java 2 s .  com-->
    font-family: "Courier New";
}

h1 {
    font-family: Verdana;
}
</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