The CSS Box Model Explain
Every HTML element has a box around it, even if you cannot see it.
The CSS border property defines a visible border around an HTML element.
Html Code:
<!DOCTYPE html>
<html>
<head>
<style>
p {
border: 1px solid grey;
}
</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>
Post a Comment