Learn HTML Forms by Building a Registration Form Step:38

I have tried many times but still cannot pass step 38, can anyone help me?

Step 38

Center the h1 and p elements by giving them a margin of 1em auto. Then, align their text in the center as well.

My code:

h1,p {margin: 1em auto;
text-align: center;}

Hint

You should use a comma-separated element selector to style the h1 and p elements.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).