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

jc laurent
jc laurent
Front End Web Development Techdegree Student 3,429 Points

You need to set the border color for <p> elements to red.

why it doesn't work?

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

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

.main-pg {

  border: 4px red wide;

2 Answers

Andrea Hernandez Guzman
Andrea Hernandez Guzman
7,354 Points

Hi, the main issue here is with the wide value. I'm thinking that you maybe meant to use a specific type of border-style, but wide is not a supported value for the border-style property. You can try something like the following:

border: 4px red solid;