At some point in the future, using the inputmode attribute instead of the type attribute will probably be the correct solution This also works with the attribute onsubmit. ; Bootstrap scopes the :invalid and :valid styles to parent .was-validated class, usually applied to the