Styles . The HTML style attribute is used to add styles to an element, such as color, font, size, and more. Setting the style of an HTML element, ca…