Different Between radio and Checkbox Button and search every platform and given wrong concept search any search Engine,Wikipedia, Google bard and gpt
SUNDER SINGH
Generative AI Ops Intern@Linuxworld || Machine Learning using Python Intern@PHN || IRT Team@Flipkart || Docker || AWS cloud | Machine Learning l Red Hat Linux || Computer Vision ||
Every one know to Different B/w radio and checkbox html tag
radio tag select only one at a time and checkbox select multiple at a time
but Every one Learn wrong concept believe me
And i Understand this concept and explain in this blog :
Following step by step and
Step 1: write a HTML Program and file name --> form.html
<form>
Enter User Name: <input type="text" name="Name" /></br>
Enter User Passworld <input type="Password" name="Password" /></br>
Enter User Gender :
Male:<input type="radio" name="g1" />
Female<input type="radio" name="g2" />
</br>
Choice Your Course:
AI:<input type="checkbox" name="c1" />
ML:<input type="checkbox" name="c2" />
QC:<input type="checkbox" name="c3" />
FS:<input type="checkbox" name="c4" />
</br>
<input type="submit" />
<input type= "Reset" />
</form>
Output:-
Radio button select both at a time show this picture
This time your concept failed
Believe me You are learn wrong concept and not search
change some concept name = "g1"
领英推荐
<form>
Enter User Name: <input type="text" name="Name" /></br>
Enter User Passworld <input type="Password" name="Password" /></br>
Enter User Gender :
Male:<input type="radio" name="g1" />
Female<input type="radio" name="g1" />
</br>
Choice Your Course:
AI:<input type="checkbox" name="c1" />
ML:<input type="checkbox" name="c2" />
QC:<input type="checkbox" name="c3" />
FS:<input type="checkbox" name="c4" />
</br>
<input type="submit" />
<input type= "Reset" />
</form>
Output:-
submit button
Given this concept answer Believe me my answer:
Radio Button
First code in attribute name = g1 and g2 two variable assign and and Second code in attribute name = g1 both variable name same than use singe variable Radio button use primitive data type one time value store of the single value and use Boolean data type true and false and store database value 0 and 1
Checkbox button :
checkbox button use non primitive type like to array/list store multiple value or
use data structure store multiple value given url bar show the
DRC.HTML?Name=Sunder+Singh&Password=Sijngh&g1=on&c1=on&c1=on&c1=on
Like and Support me next time any more inserting topic explain and write blog
Server Administrator || Docker || AWS || Containers | Windows | O365 | Google workspace | Ansible
1 年It was good ??, and we'll wish for you more upcoming topics and small concepts like this Keep writing and keep learning
DevOps Engineer @Defenzelite | ARTH3.0 Learner | Technical Volunteer @LinuxWorld | AWS CSA & DEV | Linux | Docker | Kubernetes | Ansible | Jenkins | Python | Git & Github | Big Data
1 年Great work ?
Generative AI Ops Intern@Linuxworld || Machine Learning using Python Intern@PHN || IRT Team@Flipkart || Docker || AWS cloud | Machine Learning l Red Hat Linux || Computer Vision ||
1 年? ?? ?? ??