HTML <param> Tag
The <param> tag in HTML is used to define a parameter for plug-ins which is associated with <object> element. It does not contain the end tag.
Syntax:
<param name="" value="">
Attributes: This tag accepts four attributes, which are described below.
- name: It is used to specify the name of the parameter.
- value: It is used to specify the value of the parameter.
- type: It is used to specify the media type.
- valuetype: It is used to specify the type of the value.
Note: The type and valuetype attributes are not supported in HTML5.
Example 1:
HTML
<!DOCTYPE html> < html > < body > < h1 >GeeksforGeeks</ h1 > < h2 >HTML param Tag</ h2 > < object data = < param name = "video" value = "play" > </ object > </ body > </ html > |
Output:
Example 2:
HTML
<!DOCTYPE html> < html > < body > < h1 >GeeksforGeeks</ h1 > < h2 >HTML param Tag</ h2 > < object data = < param name = "video" value = "play" > </ object > </ body > </ html > |
Output:
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari