Difference between checkbox and radio button|

difference between checkbox and radio button
difference between checkbox and radio button

Difference between checkbox and radio button-

First of all, before discussing about the difference between checkbox and radio button we should discuss what is checkbox?

Checkbox:-

According to Oxford dictionary, checkbox means “A small box on a form into which a tick or other mark is entered as the response to a question”

Then according to IT and our view, a checkbox is a box in a single form where a symbolic instruction or mark is provided as to response the question. It means for a shorten question in a form they provide a space where you can mark it or leave it blank or in some cases, there may be so many options for a single question and you have to select a single one or many.  


Checkboxes are not only used in forms but also used in digital forms websites form fill up and at so many ways we use checkboxes,

Example of a checkbox:  do you have any vehicle?.

I have a bike
I have a car
here by submitting you will be redirected to amazon mens kurta this is called the form action here the action page is redirected to mens kurta

This is called checkbox, here you can perform two things if you are handicapped then mark it with a tick option or mark it with the way as per directed in the form, After marking the checkbox it will be changed into this [tick mark].

The checkbox can also be made by using hypertext mark up language in web pages.

Here is the example of web page code for making checkbox using hypertext mark up language{HTML}

<form action=”https://amzn.to/2H36iNn”>
<input type=”checkbox” name=”vehicle” value=”Bike”> I have a bike<br>
<input type=”checkbox” name=”vehicle” value=”Car” checked> I have a car<br>
<input type=”submit” value=”Submit”>
</form>

Difference between checkbox and radio button|

image source:google.com

Read more: Difference between current account and savings account.

 

Hence we can also make checkboxes using other coding languages.

Now we should talk about what is a radio button?

Radio button in a form means you have to check one option among all the options. This means from a graphical representation you could answer a single value from a given set of other options.

Going towards the example of the radio button:-

What is your gender?

Male
Female
Other

Here you can answer or check or mark on a single answer. If you will answer on 2 options then the 2nd one will be chosen as the answer.

These radio buttons are also used in digital platforms or websites by the HTML language.

The example of a web page radio button using HTML code is here

<!DOCTYPE html>
<html>
<body>

<form action=”/action_page.php”>
<input type=”radio” name=”gender” value=”male”> Male<br>
<input type=”radio” name=”gender” value=”female”> Female<br>
<input type=”radio” name=”gender” value=”other”> Other<br>
<input type=”submit” value=”Submit”>
</form>

</body>
</html>

Lets discuss the difference between checkbox and radio button.

  • The main difference between checkbox and radio button is we can mark or check all the options over the checkbox but we can mark a single option on radio button.
  • Radio buttons are used for a specific answer and the checkbox are used for getting multiple answers
  • In HTML the code for the checkbox and the radio button is different like for the checkbox we write input type= “checkbox”, and for the radio button we write input type= “radio”.

Thank you for reading this article if you have any doubt about the difference between checkbox and radio button you can comment below and also you have any new idea about this you can let us know by the comment section below.

you may also read: difference between internet and intranet

9 thoughts on “Difference between checkbox and radio button|

  • December 6, 2018 at 3:22 pm
    Permalink

    This is really very good answer and I really appreciate it

    Reply
  • December 10, 2018 at 8:29 pm
    Permalink

    Thanks for sharing this article really
    Helpful

    Reply
  • July 19, 2019 at 9:15 pm
    Permalink

    Really helpful article and i just loved it thanks for sharing change some grammatical mistakes and happy to be a reader

    Reply
  • August 10, 2019 at 7:16 pm
    Permalink

    When I initially commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get four e-mails with the same comment.
    Is there any way you can remove me from that service? Cheers!

    Reply
  • August 19, 2019 at 11:43 pm
    Permalink

    Thanks for your recommendations on this blog. Just one thing I would wish to say is the fact that purchasing electronics items from the Internet is not new. The fact is, in the past decade alone, the market for online electronic products has grown substantially. Today, you can get practically any type of electronic device and other gadgets on the Internet, including cameras plus camcorders to computer components and video gaming consoles.

    Reply
  • August 20, 2019 at 3:20 pm
    Permalink

    I was just seeking this info for a while.

    After six hours of continuous Googleing, at last I got it in your website.
    I wonder what is the lack of Google strategy that don’t rank
    this type of informative web sites in top of the list.
    Usually the top web sites are full of garbage.

    Reply
  • August 21, 2019 at 10:14 am
    Permalink

    You are so cool! I do not suppose I have read through a single thing
    like this before. So great to discover someone with original thoughts
    on this topic. Really.. thanks for starting this up.

    This web site is something that’s needed on the internet, someone with a little
    originality!

    Reply

Leave a Reply to middletown junkyard Cancel reply

Your email address will not be published. Required fields are marked *