Web/API/HTMLSpanElement

From Get docs


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 StandardThe definition of 'HTMLSpanElement' in that specification. Living Standard
HTML 5.2The definition of 'HTMLSpanElement' in that specification. Recommendation
HTML 5.1The definition of 'HTMLSpanElement' in that specification. Recommendation
HTML5The definition of 'HTMLSpanElement' in that specification. Recommendation Initial definition, as <span> was associated with an HTMLElement before that.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
HTMLSpanElement Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support Yes

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support


See also

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