01CSS↗
Floating Label Input
Modern form input with label that floats up when focused or filled.
.form-group {
position: relative;
margin-bottom: 24px;
}#form#input
medium2 useful things
Modern form input with label that floats up when focused or filled.
.form-group {
position: relative;
margin-bottom: 24px;
}Validates if email address format is correct
function validateEmail(email) {
const regex = /^[^s@]+@[^s@]+.[^s@]+$/;
return regex.test(email);
}