html title in the center code example Example 1: center text in a html file <tag class="" align='center'></tag> Example 2: center text in html text-align: center;