HTML DateThe date is the value of the type attribute of an element. It creates a calendar that allows a user to choose the date. The resulting value includes the day, month, and year. SyntaxExample 1: The following example describes how to use the date in tag: Output: Example 2: The following example uses the JavaScript code for displaying the date which is entered in form. Output: Browser Support
Next TopicHTML Form Action
|