動画を再生できる「video要素」|HTML5課題16
解答
プレビュー
↓スマートフォンの方はこちらからプレビューできます。
動画を再生できる「video要素」
コード
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>動画を再生できる「video要素」</title> <link rel="stylesheet" href="#"> <script src="#"></script> <!--[if lte IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!--[if lte IE 9]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script> <![endif]--> <style> article, aside, dialog, figure, footer, header, hgroup, menu, nav, section { display: block; } </style> </head> <body> <h1>サンプル動画を表示</h1> <video src="http://webgaku.hotcom-web.com/image/sample.mp4" controls> <p><img src="http://webgaku.hotcom-web.com/image/sample.png" alt="動画のサムネイル"></p> <p><a href="http://webgaku.hotcom-web.com/image/sample.mp4">動画のダウンロード</a></p> </video> <p>※サンプル動画は無音です。</p> </body> </html>