1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<!DOCTYPE html> <!-- Nested fieldsets should be assigned validation correctly --> <html> <head> <style> fieldset:valid { background-color: green; } fieldset:invalid { background-color: red; } </style> </head> <body> <fieldset> <fieldset> <input> </fieldset> <fieldset> <input required> </fieldset> </fieldset> </body> </html>