1 2 3 4 5 6 7 8 9 10 11 12 13 14
<!DOCTYPE html> <!-- fieldset with only valid elements --> <html> <head> <style> fieldset:valid { display: none; } </style> </head> <body> <fieldset id="fieldset"> <input value='foo' required> </fieldset> </body> </html>