Thursday, December 27, 2018

HTML and CSS borders

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>

OUTPUT:- 


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

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...