HTML span Tag
HTML span Tag
The span tag is an inline container and is used to mark up or style a part of a text, or a part of a document. It can easily be styled by CSS or manipulated with JavaScriptby using an id or class attribute. It is similar to a div tag. However, the span tag is an inline element while the div tag is a block-level element.
Syntax:-
Its syntax is:- < span >