日付や時刻を表す「time要素」|HTML5課題11
解答
プレビュー
↓スマートフォンの方はこちらからプレビューできます。
日付や時刻を表す「time要素」
コード
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>日付や時刻を表す「time要素」</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> <time datetime="2012-07-06" pubdate="pubdate">2012年7月6日</time> </body> </html>