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???

<!doctype html>
    <link href="styles.css" rel="stylesheet">

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

.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;