What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Need CSS help


New member
I don't know how to write CSS. (but do know html)

I'm trying to make all h tags center throughout my entire site.

Is this correct? or is there an easier and better way to do it?

h1 {text-align: center;}
h2 {text-align: center;}
h3 {text-align: center;}
h4 {text-align: center;}
h5 {text-align: center;}

Thanks for your help in advance.