align centre html text code example Example: center header html <h1 align="center">This is heading 1</h1>