The span attribute is used to set the style of the span tag. The style attribute can be used to set the font, colour, and other properties of the span tag.