css-pseudo-class-valid
RUN
<!DOCTYPE html> <html> <head> <style> input:valid { background-color: green; } </style> </head> <body> <input type="email" value="abc@abc.com"><br> <span>Nhập email không hợp lệ sẽ thấy sự thay đổi</span> </body> </html>
PHÓNG TO