The <span>
element is an inline element, which doesn’t really describe its content in any specific way. Because of this, it should only be used when there isn’t a more appropriate semantic element available.
You might use it for styling content (directly, or with the class
or id
attributes for example) or for grouping content for some other reason.