data message input html code example
Example 1: filled input in form
<input type="text" value="default value">
Example 2: input show validation message
// Validate emai
var applicationForm = document.getElementById("applicationForm");
if (applicationForm.checkValidity()) {
applicationForm.submit();
} else {
applicationForm.reportValidity();
}