HTML <span> tag

Usage

Used to define an inline section of code. Styling and positioning can then be applied using CSS.

Example

Code:

<p>Changing <span class="red">font color</span>.</p>

Output:

Changing font color.

Required Attributes

  • none

Optional Attributes

  • none

Core Attributes