How to get a text in the centre in html code example Example: how to center text in html text-align: center;