How to use week input type in HTML?

王林
Release: 2023-08-22 08:25:05
forward
1222 people have browsed it

Use in HTML to use the week input type. Using this function, the user is allowed to select a week and year.

Whenever you provide user input for the week input type, the date picker popup will be visible.

Note − The input type "week" is not supported in Firefox and Internet Explorer. It works on Google Chrome.

How to use week input type in HTML?

You can try running the following code to learn how to use the week input type in HTML. It will show week and year.

Example

Real-time demonstration
<!DOCTYPE html>
<html>
   <head>
      <title>HTML input week</title>
   </head>

   <body>
      <form action = "" method = "get">
         Details:<br><br>
         Student Name<br><input type = "name" name = "sname"><br>
         Training week<br><input type = "week" name = "week"><br>
         <input type = "submit" value = "Submit">
      </form>
   </body>
   
</html>
Copy after login

The above is the detailed content of How to use week input type in HTML?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template