HTML and CSS borders:-
<html>
<head>
<style>
p {
border: 1px solid red;
}
</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: 1px solid red;
}
</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 border property defines a border around an HTML element
No comments:
Post a Comment