Computer >> Computer tutorials >  >> Programming >> Javascript

input type week really exist in HTML5?


Yes, input type = “week” exists and allows you to add date consisting of a year and a week number encoded according to ISO 8601. You can add it to the following:

<!DOCTYPE HTML>
<html>
   <body>
      <form action = "/cgi-bin/html5.cgi" method = "get">
         Week : <input type = "week" name = "newinput" />
         <input type = "submit" value = "submit" />
      </form>
   </body>
</html>