HTML <param> Tag


ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome, Opera or IE 9 (March 14, 2011 or later). For more information see HTML 5 browsers.

If you find this helpful, please click the Google +1 Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)

PDF mobile

The <param> Tag in HTML 5

The <param> tag specifies parameters for an object when the <object> tag is used to embed content from an external resource into a web page.

Using an <object> to embed a YouTube video

The "old" embed code for YouTube uses the object element with <param/> tags, as shown below. (The "new" embed code uses the <iframe> tag instead.)

<param/> Tag Syntax

Rules for coding HTML param/ elements
   ... flow content expected ...
   <object type="type/subtype" ...>
      <param name="pname" value="pvalue"/>
      ... flow content ...

<param/> Content Model

Contents of the param element

Content: Empty. All properties are coded using attributes.

Since the <param/> tag is a void element, it is not allowed to have any content, even HTML comments and therefore should always be coded as a self-closing standalone tag, ending with the delimiter string /> rather than just > (<param .../>).

<param> Tag Attributes

Attributes of the <param> tag
global attributes In addition to the personal attributes of the <param> tag below, any of the common HTML attributes can also be coded.

<param> Tag Examples

Examples of the param tag in HTML 5
Example of embedding video in HTML 5

The "old" YouTube embed code used the <object> tag with <param> tags and an <embed> tag. (The "new" YouTube code uses the <iframe> tag.)

<object width="640" height="390">
   <param name="movie" value=""/>
   <param name="allowFullScreen" value="true"/>
   <param name="allowscriptaccess" value="always"/>
   <embed src=""
      allowscriptaccess="always" allowfullscreen="true"
      width="640" height="390"/>

The <embed> tag provides a fallback for browsers that do not support the <object> tag.

Changes in HTML 5 - <param> Tag

What's new in HTML 5
Differences between HTML 5 and earlier versions of HTML

The 2000-2010 Recommendations from the W3C HTML Working Group defined the HTML namespace for the param element type name along with the names of all HTML element types. In older (pre-2000) versions of HTML, element type names were not associated with a namespace.

Valid HTML 5