Horje
How to create HTML Input Type Week

The <input type="week"> allows the user to select a week and year.

Depending on browser support, a date picker can show up in the input field.


How is to look HTML Input Type Week

index.html
Example: HTML
 <form>
  <label for="week">Select a week:</label>
  <input type="week" id="week" name="week">
</form> 

Output should be:

How is to look HTML Input Type Week

HTML Input Type Week

Display a Week Input Control The input type="week" allows the user to select a week and year. If the browser supports it, a date picker pops up when entering the input field. Note: type="week" is not supported in Firefox, Safari or Internet Explorer 11.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>Display a Week Input Control</h1>

<p>The <strong>input type="week"</strong> allows the user to select a week and year.</p>

<p>If the browser supports it, a date picker pops up when entering the input field.</p>

<form action="/action_page.php">
  <label for="week">Select a week:</label>
  <input type="week" id="week" name="week">
  <input type="submit" value="Submit">
</form>

<p><strong>Note:</strong> type="week" is not supported in Firefox, Safari or Internet Explorer 11.</p>

</body>
</html>

Output should be:

HTML Input Type Week
Reffered: https://www.w3schools.com/html/html_form_input_types.asp





Related Articles
What is HTML Input Types HTML Input Types
How to create HTML Input Type Text HTML Input Types
How to create HTML Input Type Password HTML Input Types
How to create HTML Input Type Submit HTML Input Types
How to create HTML Input Type Reset HTML Input Types
How to create HTML Input Type Radio HTML Input Types
How to create HTML Input Type Checkbox HTML Input Types
How to create HTML Input Type Button HTML Input Types
How to set HTML Input Type Color HTML Input Types
How to create HTML Input Type Date HTML Input Types
How to create HTML Input Type Datetime-local HTML Input Types
How to create HTML Input Type Email HTML Input Types
How to create HTML Input Type Image HTML Input Types
How to create HTML Input Type File HTML Input Types
How to create HTML Input Type Hidden HTML Input Types
How to create HTML Input Type Month HTML Input Types
How to create HTML Input Type Number HTML Input Types
What are the HTML Input Restrictions HTML Input Types
How to create HTML Input Type Range HTML Input Types
How to create HTML Input Type Search HTML Input Types
How to create HTML Input Type Tel HTML Input Types
How to create HTML Input Type Time HTML Input Types
How to build HTML Input Type Url HTML Input Types
How to create HTML Input Type Week HTML Input Types
How to stop browser autocomplete in HTML text input? HTML Input Types

Single Articles
How is to look HTML Input Type WeekHTML Input Types
HTML Input Type WeekHTML Input Types

Read Full:
HTML Input Types
Category:
Web Tutorial
Sub Category:
HTML Input Types
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
44



Share on: