calendar is date input element allowing to select particular date.
that have this behavior applied by default:
<input type="calendar" />
- inline date input element.The calendar has four different view modes:
Each mode uses <table> to render content of the view. Use DOM inspector to discover DOM structure of each view if you will need to style content of the calendar in some specific manner.
that this behavior knows about:
value="YYYY-MM-DD"
- initial date, string in ISO 8601 format.firstdayofweek="N"
- first day of week, N is a number: 0
- Sunday, 1
- Monday, etc.Aside of standard set of events (mouse, keyboard, focus) behavior: calendar generates:
Date value or undefined, reflects current selection.
N/A - this input element has no specific methods.