6 | | That is also fine. But considering the old browsers compatibility (https://caniuse.com/#feat=mdn-api_htmlinputelement_required), JavaScript validation would be a better option. |
| 6 | But considering the old browsers compatibility (https://caniuse.com/#feat=mdn-api_htmlinputelement_required), JavaScript validation would be a better option. |
| 7 | |
| 8 | |
| 9 | According to https://caniuse.com/#feat=mdn-api_htmlinputelement_required |
| 10 | the browser that don't support **required** attribute and still in usage is **27%** |
| 11 | |
| 12 | 27% is a very high number. So that is definitely not an option. |