Write the source HTML code for drawing a rectangle with red border color and 2px width.
<!DOCTYPE html>
<html>
<head>
<style>
div {
/* setting the style for border */
border-style: solid;
/* setting the style for border color as red*/
border-color: red;
/* setting the style for border height as 170*/
height:170px;
/* setting the style for border width as 2*/
border-width:2px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
Please Like and Support me as it helps me a lot
Get Answers For Free
Most questions answered within 1 hours.