HTML is used to structure text and other elements on a website semantically. Compared to it’s function in the beginning, is HTML no longer used to design a website. Nowadays you change the design with CSS.
Though you can still use HTML to design some elements of your website, you should not do that. It is outdated behavior and can cause error messages. So please rather just use CSS if you want to change the design of an element of your website.