HTML <span> Element Reference

The HTML <span> element is a generic inline container used when no more meaningful element applies.

<span>

HTML <span> Element Reference

The HTML <span> element is a generic inline container used when no more meaningful element applies.

Categories

  • Text-level semantics

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical span element example.

<p>Status: <span class="status">Available</span></p>

Related references

Description

The HTML <span> element is a generic inline container used when no more meaningful element applies.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <span> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies