how to center align a form in html code example Example: html align form center form { text-align: center; }