Example

A simple <span> tag:

Laboratory

description & Usage

The <span> tag is used to group inline elements in an HTML document.

This tag is used as a container to group other tags and texts.

This tag is inline level by default.

To divide into block level, you can use the <div> tag.

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<span>

Global Attributes

The span tag tag supports the HTML Global Attributes.

Event Attributes

The span tag tag supports the HTML Event Attributes.

Default CSS

Most browsers will display the span tag tag with the following default style: