10. HTML5嵌入案例
<audio controls>
<source src="soundfile.mp3">
<source src="soundfile.ogg">
</audio>
<video controls loop autoplay>
<source src="butterfly.mp4" type="video/mp4">
<source src="butterfly.webm" type="video/webm">
<source src="butterfly.ogv" type="video/ogg">
</video>
• controls : Displays the standard HTML5 controls for the audio on the web page.
• autoplay : Makes the audio play automatically.
• loop : Make the audio repeat (loop) automatically.
25. The canvas element provides scripts with a resolution-
dependent bitmap canvas, which can be used for rendering
graphs, game graphics, art, or other visual images on the
fly.