How can i code the required option? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i code the required option?

20th Dec 2020, 8:05 AM
Titi Yuri
Titi Yuri - avatar
2 Answers
+ 5
Visit this link, https://www.w3schools.com/tags/att_input_required.asp and please write proper relevant tags
20th Dec 2020, 8:07 AM
ㅤㅤㅤ
+ 3
You just have to add required in the input tag. It goes like:  <input type="text" id="email" name="email" required>
20th Dec 2020, 8:13 AM
ADITYA KHANDELWAL
ADITYA KHANDELWAL - avatar