HTML · Forms · Fresh / Intern · Comparison
What does the required attribute do vs JavaScript validation?
Short Interview Answer
required participates in native constraint validation; JS can add custom rules and UX.
Detailed Explanation
Native validation is progressive and works without JS, but messaging/styling is limited. Combine both carefully; don't disable native without replacement.