+ 2
To make a field mandatory in HTML 5 forms, which word is used?
That field in form which we can't leave empty.
5 odpowiedzi
+ 5
required
<input type="text" required>
+ 3
no @Raashed he is talking about XHTML, in XHTML attributes minimisation is forbidden.. u have to use it as <input type= "text" required="required">
and in html u have specified wrong syntax.. type attribute defines the type of value the input field will take.. type can never have value as required.. required itself is an attribute..
so the syntax goes as :
<input type="text" required>
+ 1
XHTML: <input required="required">
+ 1
it is <input type= required/> @romangraef
+ 1
yes bro @Sami... but I didn't wrote "text"... and in XHTML I didn't know how we use it... thank you for your answers