The required attribute only enforce presence of control
values and prevent form submission in case the control value is absent.
This example make use of the type attribute to validate
the control values in a default way while it uses the required
attribute to avoid submitting the form when the control value is empty.
age field only accepts numeric keystrokesplaceholder attribute is set for all fieldsrequired)