HTML Introduction to HTML and CSS Make It Beautiful With CSS Test: Styling by Element and Class

Robert McCandless
Robert McCandless
1,131 Points

how do I give the paragraph a border of 4px???

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
  </head>
  <body>


    <p class = "main-pg">My amazing website</p>

  </body>
</html>
styles.css
.main-pg {
 border: 4px;
}

2 Answers

Ken Stone
Ken Stone
28,937 Points

No problem. Yeah for border you have to do something like

border: 4px solid red;