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.