In input type="hiden" vs just hidden

Whitch is more better way to set hidden for an input? hidden is with css [hidden] and display: none;

Thanks!

Good question. I didn’t know so I looked that up. Evidently type=“hidden” won’t conflict with form validation or autocomplete and quite few other distinctions.

Ultimately you will have to decide which works best in your specific case

1 Like