Horje
How to create HTML CSS Border

The CSS border property defines a border around an HTML element.


Full Example of HTML CSS Border

Tip: You can define a border for nearly all HTML elements.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<style>
p {
  border: 2px solid powderblue;
}
</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 should be:

Full Example of HTML CSS Border





Category:
Web Tutorial
Sub Category:
HTML Styles
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference