Use the style property in HTML to alter the text's font. An element's inline style is specified through the style property. The attribute is used with the CSS properties font-family, font-size, font-style, and the HTML p> tag. The font> tag is not supported by HTML5, so the CSS style is used instead to modify the font.