Learn CSS Foundations Projects - CSS Foundations Exercise A

Tell us what’s happening:

Hello everyone.
I have problem with the external CSS of “div” element.
In other posts I see it could be a bug?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" link="styles.css">
    <style>
       p {
      background-color: green;
      color: white;
      font-size: 18px}
    </style>
    <title>Lesson A</title>
  </head>
  <body>
    <div>ABC</div>
    <p>def</p>
    <button style= "background-color: orange; font-size: 18px">BUTTON</button>
  </body>
</html>
/* file: styles.css */
div {
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 32px;
  text-align: center
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Foundations Projects - CSS Foundations Exercise A

look at the preview, is the css added to the external stylesheet being applied?

Unfortunately no., there’s no changes

investigate that

how do you add an external stylesheet?

I have to use

and create the styles.css to put commands. Oh… I wrote link instead of href……

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.