Problem Statement
List and explain at least five major new features introduced in HTML5.
Explanation
HTML5 introduced a wide range of features to modernize the web platform. Key features include new semantic elements (like article, section, header, footer) for clearer structure; multimedia support with audio and video elements; the canvas and SVG APIs for graphics; offline storage with localStorage and service workers; new form input types like email, range, and date; and APIs such as Geolocation, Drag and Drop, and Web Workers. Together, these make HTML5 powerful for building interactive, multimedia-rich, and offline-capable applications.
Code Solution
SolutionRead Only
<!-- Example summarizing HTML5 features --> <header><h1>HTML5 Features</h1></header> <main> <video controls src="intro.mp4"></video> <canvas id="chart"></canvas> <script>/* draw chart code */</script> </main>
