Set the left margin of <h1> to "20px". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the left margin of <h1> to "20px".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
h1 {<!-- w ww .j a v  a2s .c om-->
    background-color: pink;
    margin-left: 20px;
}
</style>
</head>
<body>

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

</body>
</html>

Related Tutorials