HTML <span> tag
HTML <span> tag is used as a generic container of inline elements. It is used for styling purpose to the grouped inline elements (using class and id attribute or inline style).
The <span> tag does not have any default meaning or rendering.
The <span> tag can be useful for the following task:
Note: HTML <span> is much similar as <div> tag, but <div> is used for block-level elements and <span> tag is used for inline elements.
Following are some specifications about the HTML <span> tag
ExampleTest it Now
The <span> tag does not contain any specific attribute in HTML.
The <span> tag supports the Global attributes in HTML.
The <span> tag supports the Event attributes in HTML.