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

Karly Lamm
Karly Lamm
7,035 Points

I am using the correct format shown on the video and on, does anyone know why this is showing as wrong

I keep getting an error that I need to set the <p> border to red, but I am in the border property

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

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

border =4px solid red;


2 Answers

unknown member
unknown member
Pro Student 18,937 Points

Use colon instead of equal sign.

.main-pg {
  border: 4px solid red;

colon instead of equal sign