週用の入力フィールドを表します。
使用例
<!DOCTYPE html> <html lang="ja"> <head> <title>Hello! HTML5></title> <meta charset="UTF-8"> </head> <body> <form action="hoge.cgi" method="post"> <p> 週:<input type="week" id="week" min="2012-W2" max="2012-W20" step="2" /> <input type="submit" value="送信" /> </p> </form> </body>
レンダリング
属性
min属性、max属性
入力可能な週の範囲を指定します。
step属性
既定では一週間刻みで入力することができます。step属性ではその入力単位を指定することができます。