References

Collection of references for web development.

HTML span tag

Description

The HTML <span> element represents an inline container. There is no default styling added to this element, its purpose is to be used as a container, similar to that of a <div> but can only contain inline elements.

Example

<p>Part of this text is <span style="font-weight:bold;">bold</span>.<p>

Example #2

<p>Part of this text is <span><i>italic</i></span>.<p>