HTML <span> Tag

In an HTML page, the span element specifies a generic inline container.

The <span> element is an inline container that is used to mark up a section of text or a section of a page.

Using the class or id property, the span element may be easily customized with CSS or modified using JavaScript.

The <span> tag is similar to the <div> element, however the <div> element is a block-level element, whereas <span> is an inline element.




Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<span> Yes Yes Yes Yes Yes