পেজ লোড হওয়ার সাথে সাথে অডিও বা ভিডিও স্বয়ংক্রিয়ভাবে চালাতে autoplay অ্যাট্রিবিউট ব্যবহার করা হয়।
উদাহরণ
HTML-এ autoplay অ্যাট্রিবিউট বাস্তবায়নের উদাহরণ:
<!DOCTYPE HTML> <html> <body> <video width = "300" height = "200" controls autoplay> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the video element. </video> </body> </html>