The solution has to be accepted with neither errors nor warnings by W3C validator, therefore the "video" tag known from HTML5 is obviously incorrect. Movie is placed in file at the same directory as web site.

有帮助吗?

解决方案

Under the given conditions, the only way is to embed the video with an object element:

<object data=vodka.mp4 width=300 height=150>
  See the <a href=vodka.mp4>video of our hamster</a>.
</object>

Browser support is limited, and even on supporting browsers, the user may be prompted for a permission to run a plug-in. So the idea of disallowing video is odd, but I guess this is a school project, where such misguided requirements are imposed on formal and not-well-informed basis.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top