Horje
HTML <input type="week">

The HTML <input type=”week”> is used to select a specific week of the year using a week picker interface. It provides an easy way to input week-based data, including the year and week number, in a standardized format, enhancing user experience and data consistency.

Syntax

<input type="week">

Example: In this example, we will explain the use of HTML <input type=”week”>.

HTML
<!DOCTYPE html>
<html>

<head>
    <title>
        HTML Input Type week
    </title>
</head>

<body style="text-align:center;">

    <h1 style="color:green;">
        GeeksforGeeks
    </h1>

    <h2>HTML &lt;Input Type="week"&gt;</h2>

    <input type="week">
</body>

</html>

Output

HTML-Input-Type-Week

Supported Browsers

  • Google Chrome 20
  • Edge 12
  • Opera 11


Reffered: https://www.geeksforgeeks.org


HTML

Related
HTML | &lt;meter&gt; form Attribute HTML | &lt;meter&gt; form Attribute
HTML DOM Audio loop Property HTML DOM Audio loop Property
HTML &lt;input type=&quot;time&quot;&gt; HTML &lt;input type=&quot;time&quot;&gt;
HTML | &lt;input&gt; height Attribute HTML | &lt;input&gt; height Attribute
HTML DOM Audio defaultPlaybackRate Property HTML DOM Audio defaultPlaybackRate Property

Type:
Geek
Category:
Coding
Sub Category:
Tutorial
Uploaded by:
Admin
Views:
8