HTML Dog
Skip to navigation

HTML Tag: span

A generic container for a text or inline HTML. Lending no additional meaning, it is typically used as scaffolding to hang CSS on or for JavaScript to reach out to.

Optional Attributes

Global attributes

Example


<p>You could apply styles to <span class="whatever">this text</span> or <span class="whatever">tis thext</span> using the span tag.</p>