Use the controls attribute in HTML to include audio/ video controls in HTML.
Example
You can try to run the following code to implement the controls attribute −
<!DOCTYPE html> <html> <head> <title>HTML video Tag</title> </head> <body> <p>Online Compiler</p> <br /> <video width = "500" height = "300" controls> <source src = "/html/compileonline.mp4" type = "video/mp4"> This browser doesn't support video tag. </video> </body> </html>