HTML and CSS margin:-
<html>
<head>
<style>
p {
border: 2px solid blue;
margin: 30px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>
<html>
<head>
<style>
p {
border: 2px solid blue;
margin: 30px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>
OUTPUT:-
- The CSS margin property defines a margin (space) outside the border.
No comments:
Post a Comment