<form /> and attribute 「inert」

Web developers could style form elemets with CSS pseudo class & pseudo elements and other modern CSS properties.

JavaScript

Set form property inert to freeze or unfreeze form.

<script> const form = document.querySelector('form'); form.addEventListener('submit', (evt) => { ... ... form.inert = true; // freeze|| unfreeze form ... ... } ); </script>