Set all margins for <h1> to "25px". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set all margins for <h1> to "25px".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
h1 {<!--  www.j a  va 2 s  .  c o  m-->
    background-color: pink;
    margin: 25px;
}
</style>
</head>
<body>

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

</body>
</html>

Related Tutorials