How can one prevent the download option from appearing on a video embedded in an HTML page?
To prevent the download option from appearing on a video embedded in an HTML page, you can use the "controlsList" attribute in the video tag and set it to "nodownload". This will disable the download option for the video.
<video controls controlsList="nodownload">
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Keywords
Related Questions
- How can meaningful naming conventions and clear documentation improve the readability and maintainability of PHP code, especially in object-oriented programming?
- Why is it important to properly indent code in PHP for readability and debugging?
- What are the potential pitfalls of mixing PHP and JavaScript code in a web development project?