param Tag in HTML

0
111

The `<param>` tag is an HTML tag that is used to specify parameters for embedded objects such as video, audio, and plugins. This tag is used inside the `<object>` tag and is used to define the various properties of the embedded object.

Here’s a step-by-step tutorial on how to use the `<param>` tag:

1. Start by creating an `<object>` tag in your HTML document. This tag is used to embed an external resource such as a video, audio file, or plugin. Here’s an example of an `<object>` tag:

<object width=”400″ height=”300″ data=”example.mp4″></object>

In this example, we have specified the width and height of the object as well as the source of the object using the `data` attribute.

2. Next, add one or more `<param>` tags inside the `<object>` tag. Each `<param>` tag specifies a parameter for the object. Here’s an example of a `<param>` tag:

<object width=”400″ height=”300″ data=”example.mp4″>
<param name=”autoplay” value=”true”>
</object>

In this example, we have added a `<param>` tag to enable the autoplay feature. The `name` attribute specifies the name of the parameter, and the `value` attribute specifies the value of the parameter.

Also Read:  Canvas Tag in HTML

3. You can add multiple `<param>` tags to specify multiple parameters for the object. Here’s an example:

<object width=”400″ height=”300″ data=”example.mp4″>
<param name=”autoplay” value=”true”>
<param name=”loop” value=”true”>
<param name=”controls” value=”false”>
</object>

In this example, we have added three `<param>` tags to enable autoplay, looping, and hide the controls.

4. Some of the commonly used parameters are:

– `autoplay`: Specifies whether the media should start playing automatically or not.
– `loop`: Specifies whether the media should loop or not.
– `controls`: Specifies whether to display the media player controls or not.
– `src`: Specifies the URL of the media file to be embedded.
– `type`: Specifies the MIME type of the media file.

5. Finally, close the `<object>` tag.

That’s it! You now know how to use the `<param>` tag to specify parameters for embedded objects. Remember to test your code to ensure that the embedded object is displayed correctly and that the parameters are applied as expected.

Previous articlep Tag in HTML
Next articlepicture Tag in HTML
Namaskaar, Friends main Kapil byteshastra.com ka Founder hu. Mere kai English blog bhi hai ,par mera motive yahan par easy language mein Technology se related Gyan ko aap tak pahunchane ka hai .taki aap kuch naya shikh sake. meri koshish hai ki bilkul simple tarike se aap ko nyi updates deta rahu taki aap bhi technology ke is yug mein peeche na rahe aur shikte rahe.Mujhse judne ke liye app mujhe Social Media par follow kar sakte hai.

Leave a Reply