# The “name” attribute is never allowed on the “param” element.

> Canonical HTML version: https://rocketvalidator.com/html-validation/the-name-attribute-is-never-allowed-on-the-param-element
> Attribution: Rocket Validator (https://rocketvalidator.com)
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

The `name` attribute is reported on the `<param>` element because `<param>` itself is obsolete in the HTML standard.

`<param>` used to sit inside `<object>` to pass named values to plugins such as Flash, Java applets, or ActiveX controls. Each one carried a `name` and a `value`. Browsers dropped plugin support, the element was removed from the HTML specification, and the Nu validator now rejects its attributes, including `name`.

There is no replacement attribute to add. The fix is to delete the `<param>` element. If the surrounding `<object>` points at a resource that browsers still handle on their own, like an image or a PDF, set the `data` and `type` attributes directly on `<object>` and drop the parameters. If the content depended on a plugin, use a native element such as `<video>`, `<audio>`, or `<iframe>` instead.

## Invalid example

```html
<object data="movie.swf" type="application/x-shockwave-flash">
  <param name="autoplay" value="true">
</object>
```

## Valid example

```html
<video src="movie.mp4" autoplay controls></video>
```
