I don’t understand this entire segment if I’m being honest.
h1 { text-align: center; } h2 { text-align: center; } p { text-align: center; }It’s just 3 different selectors for 3 different elements called h1, h2 and p.
And we are saying that we want the text to be aligned to the center of the display area.
What challenge is it?
They really should be a selector list, if that is how they are written (i.e. 3 selectors with the same styles).
h1,
h2,
p {
text-align: center;
}
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.