Table of Contents

HTML - Span element

About

The span element is a generic wrapper for phrasing content that by itself does not represent anything.

Span doesn't have explicit attributes.

Usage

Span is then handy to use:

Rendering

div elements are rendered as block boxes whereas span element are rendered as inline box.

Example:

<p>
Hallo <span style="color:green">World</span>
</p>

Documentation / Reference