The best HTML DOM Source Object Tutorial In 2024, In this tutorial you can learn Source Object,Source Object Properties,Standard properties and events,related articles,
Source object represents an HTML <source> element.
You can use getElementById () to access the <source> element:
You can use the document.createElement () method to create a <source> element:
属性 | 描述 |
---|---|
media | 设置或返回 <source> 元素中 media 属性的值。 |
src | 设置或返回 <source> 元素中 src 属性的值。 |
type | 设置或返回 <source> 元素中 type 属性的值。 |
Source object also supports the standard attributes and events .
HTML Tutorial: the HTML5 Connections Video (Video)
HTML Tutorial: the HTML5 Audio (Audio)
HTML Reference Manual: HTML <Source> tag