Learn CSS Foundations Projects - CSS Foundations Exercise A

Tell us what’s happening:

Error: The div element should have its CSS added externally, I don’t really know what I am doing wrong but even when I give

i get more errors.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html>
  <head>
    <link ref="stylesheet" href="styles.css" >
    <title>Exercise A</title>
 

  </head>
  <body>

<div >Banana</div>
<p>Squid</p>

<button style="background-color: orange; font-size: 18;"">Click me</button>
 
  </body>
</html>

/* file: styles.css */
/* styles.css */

div{
  text-align: center;
  background-color: red;
  color: white;
  font-size: 32;
  font-weight: bold;
}

p{
  color: white;
  font-size: 18;
  background-color: green;
}

Your browser information:

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

Challenge Information:

Learn CSS Foundations Projects - CSS Foundations Exercise A

hello and welcome to fcc forum :slight_smile:

  • its missing “type” attribute
  • how does your “styles.css” looks like?
  • does it address that whats been said here?

happy coding :slight_smile: