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