Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/myscript/public_html/classes/classdb.php on line 42
Week Attribute | Input Types | HTML5 Tutorial | Example

week attribute

<input type=week>


Week Attribute allows the user to select a week of the respective year.

Example Code:

Result :

Enter the week:
  • This attribute allows user to select both the year and week simultaneously.
  • Output shown will be the entered text, if the attribute is not applicable in a browser.


It will function only in major browsers like Safari and Opera.

Ask Questions

Ask Question