HTML DateThe date is the value of the type attribute of an <input> 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 <input> tag: Test it NowOutput: Example 2: The following example uses the JavaScript code for displaying the date which is entered in form. Test it NowOutput: Browser Support
Next TopicHTML Form Action |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India