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

Avery Pierce
Avery Pierce
1,869 Points

I recently posted the wrong code, can anyone help me with this code?

<p class="main-pg" border:4px solid red > My amazing website </p>

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

    <p class="main-pg" border:4px solid red > My amazing website </p>

  </body>
</html>
styles.css
.main-pg{
}

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,416 Points

You have the right code - just the wrong location. Move it to your stylesheet between the brackets you created in task 2.

Tek Dhakal
Tek Dhakal
7,506 Points

That border: solid red 4px goes in your styles.css file.