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

Avery Pierce
Avery Pierce
1,869 Points

can anyone help me place the <p> content in borders? 4px red solid?

Is this suppose to go in the style.css or in the index? and how would I write it?

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 rule:
}

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 50,935 Points

I'm not sure why you have 'rule:' but that should be removed. Then you should be good.

Nerissa Taylor
Nerissa Taylor
2,749 Points

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