HTMLSpanElement

The HTMLSpanElement interface represents a <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods.

Properties

This interface has no properties, but inherits properties from: HTMLElement.

Methods

This interface has no methods, but inherits methods from: HTMLElement.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLSpanElement' in that specification.
Living Standard
HTML 5.2
The definition of 'HTMLSpanElement' in that specification.
Recommendation
HTML 5.1
The definition of 'HTMLSpanElement' in that specification.
Recommendation
HTML5
The definition of 'HTMLSpanElement' in that specification.
Recommendation Initial definition, as <span> was associated with an HTMLElement before that.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLSpanElementChrome Full support YesEdge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support
Full support

See also

  • The HTML element implementing this interface: <span>.