pub struct Param;Expand description
The <param> element - defines parameters for an <object> element.
§Purpose
The <param> element defines parameters that are passed to the plugin or application
instantiated by an <object> element. Each parameter is specified as a name-value pair.
Must be a child of an <object> element and appear before any fallback content.
§Content Categories
- None (used only within
<object>elements)
§Permitted Content Model
- None (void element)
§Common Use Cases
- Passing configuration to Flash content
- Setting plugin initialization parameters
- Configuring embedded applications
- Controlling playback settings
- Specifying display or behavior options
§Key Attributes
name: Name of the parameter (required)value: Value of the parameter (required)
§Example
<!-- Flash parameters -->
<object data="/media/animation.swf" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="allowfullscreen" value="true">
<param name="flashvars" value="autoplay=false&volume=50">
</object>
<!-- Plugin configuration -->
<object data="/plugins/viewer.plugin" type="application/x-custom">
<param name="autostart" value="false">
<param name="volume" value="75">
<param name="controls" value="true">
</object>
<!-- Multiple parameters for video -->
<object data="/media/video.mp4" type="video/mp4">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="controls" value="true">
<p>Your browser doesn't support this video format.</p>
</object>§WHATWG Specification
Trait Implementations§
Source§impl HtmlElement for Param
impl HtmlElement for Param
impl CanContain<Param> for Object
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more