HTML span tag
<span> tag does not have special meaning but it represents its content or child elements. It is an inline element. It can style a piece of text and make annotations.
Tag Uses
Specific uses of <span> tagTo make annotations in a paragraph of text.
title attribute
span tag supports the title attribute. Title attribute can be applied on a piece of text.
lang attribute
If a small piece of text is of different language in English language then span can be used to specify the type of language.For example,
class attribute
class attribute is also applicable on the span element. It can annotate a piece of text.
Tag omission
Both starting and ending tags are necessary for the span element.
Global Attributes
Some of the global attributes are given below. Span tag is useful when used with global attributes.