When used together with CSS the element can be used to style parts of the text.
What is text style in html. The element has no required attributes but style class and id are common. The attribute is used with the HTML. Properties that affect the spacing and other layout features of the text allowing manipulation of for example the space between lines and letters and how the text is aligned within the content box.
The element is an inline container used to mark up a part of a text or a part of a document. If you are working on an HTML5 page the tag can quickly highlight text. To change the text font in HTML use the style attribute.
The style attribute specifies an inline style for an element. Below is an example of the how to use the mark tag and its result.