The Span object represents an HTML <span> element.
You can access a <span> element by using getElementById():
You can create a <span> element by using the document.createElement() method:
The Span object supports the standard properties and events.
HTML tutorial: HTML Blocks
HTML reference: HTML <span> tag