Center align h1 and p

What is wrong with my code?

Simple: main is a tag .main is a class and #main is an id → what did you use and what should you have used?

1 Like

Sorry I can’t get what you are trying to say

h1 and the p are the html tags not the class or an id.
You do not need to put any . or a comma before the h1 or p.
Learn more about classes and id in css.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.