<?xml version="1.0" encoding="utf-8"?>

The autoplay attribute

The autoplay attribute

The autoplay attribute plays the video automatically once you enter the page. It goes inside the <video> tag following width and height attributes.

While autoplay videos can boost conversions, they're profoundly annoying for average users and dangerous for individuals with disabilities. Think twice before adding the autoplay attribute. Such media can trigger seizures and other physical reactions, making the website downright off-putting.

Improve your UX & Product skills with interactive courses that actually work