HTML5

タグ(要素)

PARAM

  編集:2022.06.27 by T.A.

mdn

OBJECT に対するパラメーターを表す。

この要素を使用できる文脈

任意のフロー内容の前の、OBJECT 要素の子として。

内容モデル

Nothing

text/htmlにおけるタグ省略

終了タグなし。

内容属性

name、value 両方の属性が存在しなければならない。

解説

OBJECT 要素によって呼び出されるプラグインのパラメーターを定義する。この要素は、自分自身で何かを表すものではない。

次の例は、PARAM 要素を使ってプラグインにパラメータを引き渡す方法を示しています。これは O3D プラグインの場合です。

<!DOCTYPE HTML>
<HTML lang="en">
  <HEAD>
   <TITLE>O3D Utah Teapot</TITLE>
  </HEAD>
  <BODY>
   <P>
    <OBJECT type="application/vnd.o3d.auto">
     <PARAM name="o3d_features" value="FloatingPointTextures">
     <IMG src="o3d-teapot.png"
          title="3D Utah Teapot illustration rendered using O3D."
          alt="When O3D renders the Utah Teapot, it appears as a squat
          teapot with a shiny metallic finish on which the
          surroundings are reflected, with a faint shadow caused by
          the lighting.">
     <P>To see the teapot actually rendered by O3D on your
     computer, please download and install the <A
     href="http://code.google.com/apis/o3d/docs/gettingstarted.html#install">O3D plugin</A>.</P>
    </OBJECT>
    <SCRIPT src="o3d-teapot.js"></SCRIPT>
   </P>
  </BODY>
</HTML>

name属性

パラメーター名。

任意の値を持ってもよい。

value属性

パラメーター値。

任意の値を持ってもよい。


テスト
HTML:

ここに表示
HTML:

ここに表示
スクリプト:


スクリプト:



表示内容:
表示内容: