HTML <input type="date"> (original) (raw)

Last Updated : 20 May, 2024

The **HTML element provides a date picker interface for selecting dates. It allows users to input dates using a calendar widget, ensuring standardized date input across different browsers and devices.

**Syntax

**Example: In this example, the HTML displays a date input field.

HTML `

HTML Input Type Date
<h2>HTML <input type="date"></h2>

<form action="#">
    <label for="date"></label>

    <input type="date" id="date" value="2024-05-02">
</form>

`

**Output

HTML-Input-Type-Date

**Supported Browsers

Similar Reads