<style>
element {h1
property: text-align="center" value;
}
</style>
Try removing the excess space between the property value and the text-align value. If that doesn’t work, restart the step. The rest of the code looks fine to me otherwise, good job.
This challenge is asking for you to " center your h1 element by setting its text-align property to the value center."
In the example for this challenge it shows us the proper syntax as follows:
element {
property: value;
}
Using the example above as a guide, you can swap out the generic terms (element, property, value) for the specific element, property, and value that the challenge is asking for.
Ok - so you don’t actually use the words element, property, or value in the code, they are just there in the example to tell you what each part of the code is. If I wanted to style a paragraph element, I might have code that looks like this:
p {
color: red;
}
In the example above, p is the element, color is the property, and red is the value.
In the challenge you are trying to complete, the element is h1, the property is text-align, and the value is center. You just need to write that all in the proper syntax, like the example I wrote above.