how to write something in centre in html code example Example: center header html <h1 align="center">This is heading 1</h1>