Modern HTML5 has feature-parity with the now-obsolete Adobe Flash. Both include features for playing audio and video within web pages. Flash was specifically built to integrate vector graphics and light games in a web page, features that HTML5 also supports.
Adobe no longer supports Flash Player after December 31, 2020 and blocked Flash content from running in Flash Player beginning January 12, 2021.
The HTML5 specification does not itself define ways to do animation and interactivity within web pages. "HTML5" in this article sometimes refers not only to the HTML5 specification, but to HTML5 and related standards like SVG, JavaScript and CSS 3.
Animation via JavaScript is also possible with HTML 4.