Param

Struct Param 

Source
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

Source§

const TAG: &'static str = "param"

The HTML tag name (e.g., “div”, “span”, “img”).
Source§

const VOID: bool = true

Whether this is a void element (self-closing, no children allowed).
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.