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

Bandar Jamous
PRO
Bandar Jamous
Pro Student 175 Points

HTML Help

Okay,now i feel like i missed out on some stuff that now I do not understand -_-.

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

    <p class="main-pg"></p>


  </body>
</html>
styles.css

1 Answer

Robin Goyal
Robin Goyal
4,575 Points

I'd recommend reviewing the previous sections involving CSS. But the first step was to add a main-pg class to the paragraph tag. Next is to create a rule for the main-pg class in the styles.css file which is done by:

.main-pg {

}

The next step is to create a border which is a border property with the format <line-width> <line-style> <color>.

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