<span> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
What does <span> HTML Tag do?
The <span> element is the inline equivalent to the block-level <div> element. It is used to select inline content for purely stylistic purposes.
Display
inline

The <span> tag is used to select inline content for applying styles. Text in <span> tags can be styled with CSS or used with JavaScript.

Adam is a technical writer who specializes in developer documentation and tutorials.