Different Between radio and Checkbox Button and search every platform and given wrong concept search any search Engine,Wikipedia, Google bard and gpt

Different Between radio and Checkbox Button and search every platform and given wrong concept search any search Engine,Wikipedia, Google bard and gpt

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:-

URL bar : DRC.HTML?Name=sunder+Singh&Password=Sinmggh&g1=on&g2=on&c1=on&c1=on&c1=on

Radio button select both at a time show this picture

You know to radio select at a one time but given picture select at a time multiple

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:-

DRC.HTML?Name=Sunder+Singh&Password=Sijngh&g1=on&c1=on&c1=on&c1=on

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

Pushpendra Bairwa

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

Pappu Sanodiya

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 ?

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 ||

1 年

? ?? ?? ??

要查看或添加评论,请登录

SUNDER SINGH的更多文章

社区洞察

其他会员也浏览了