Hey! There are three main ways you can define or use CSS in your code.
what you’re using to pass this challenge is called “inline CSS” which is when you add CSS styles directly in you HTML code by using the style attribute.
However this challenge expects you to use “Internal CSS”. This is a brief introduction to Internal CSS.
the syntax or the way you’re supposed to write styles for an HTML element is this:
// if we try to understand each part individually,
// we get.
color : red;
selector: it is the element you’re trying to target (add any html element name, CSS class or an ID name here).
property name: this is the particular property of that element that you want to change (this would be the color, background color or even width and height) basically anything to do with the presentation of that element.
value: this is the value you want to give to the property name, for example, if the property name is set to color, then the value could be any color. if it set to height or width, then the value could be 10px or 100% or any of the values available to you.
if you want to learn more about this, here’s a resource.