0
How mandatory fields are made in HTML forms (those that commonly use an asterisk *
to indicate mandatory)? There is a parameter directly in the tag input
? If not, how is the validation done (for example, at the moment the user clicks to send, if the field was not filled a message is displayed and the form is not sent)?
Gonçalo, your question has been receiving votes to be closed as unclear, probably by the way you wrote. I took the liberty of editing it to try to help. Always remember that you can edit yourself to try to improve (by getting a negative or a vote to close), OK? : ) Good luck.
– Luiz Vieira
Browser-dependent HTML-only validation will not work. The ideal is that the validation is done via javascript with a more robust validation running in the background with a web language (php,java,c#...)
– Adriano Luz
Thanks Luiz. Sorry for the inconvenience.
– Gonçalo
I understand why you may not have found this other question, but I’ll leave it here for future references: Input constraint "type date"
– tayllan