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 CSS-tricks.com, 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

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 solid red;

}

2 Answers

unknown member
PRO
unknown member
Pro Student 18,937 Points

Use colon instead of equal sign.

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

colon instead of equal sign