Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Tri-state checkbox  





2 Not actionable  





3 HTML  





4 Unicode  





5 See also  





6 References  





7 External links  














Checkbox






العربية
Azərbaycanca
Català
Čeština
Deutsch
Español
فارسی
Français

Hrvatski
Italiano
Қазақша
Nederlands

Polski
Português
Русский
Српски / srpski
Suomi
Svenska
Українська

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Check box)

Sample binary-state checkboxes, with some options disabled

Acheckbox (check box, tickbox, tick box) is a graphical widget that allows the user to make a binary choice, i.e. a choice between one of two possible mutually exclusive options. For example, the user may have to answer 'yes' (checked) or 'no' (not checked) on a simple yes/no question.

Checkboxes are shown as empty boxes when unchecked, and with a tickorcross inside (depending on the graphical user interface) when checked. A caption describing the meaning of the checkbox is normally shown adjacent to the checkbox. Inverting the state of a checkbox is done by clicking the mouse on the box, or the caption, or by using a keyboard shortcut, such as the space bar.

Often, a series of checkboxes is presented, each with a binary choice between two options. The user may then select several of the choices. This is contrasted with the radio button, in which only a single option is selectable from several mutually-exclusive choices.

Checkboxes may be disabled (indicated "greyed out") to inform the user of their existence and possible use despite momentary unavailability.

Tri-state checkbox

[edit]
Sample tri-state checkboxes

Some applications use checkboxes that allow an indeterminate state in addition to the two provided by a normal checkbox.[citation needed] This third state is shown as a square or dash in the checkbox, and indicates that its state is neither checked nor unchecked. This is most often used when the checkbox is tied to a collection of items in mixed states. The indeterminate state cannot usually be selected by the user, and switches to a checked state when activated.

For example, a checkbox presented to select files to send via FTP might use a tree view so that files can be selected one at a time, or by folder. If only some of the files in a folder are selected, then the checkbox for that folder would be indeterminate. Clicking on this indeterminate checkbox would select all or, less commonly, none of the contained files. Continuing to click on the checkbox would alternate between checked (all sub-directories and files selected) and unchecked (no sub-directories or files selected).[image needed]

Some tri-state checkbox implementations[citation needed] allow the user to toggle among all states, including the indeterminate state, by remembering the mixed state of the items in the collection. This serves as an undo feature.

Not actionable

[edit]

Setting or clearing ("unclicking") a checkbox changes the checkbox's state with no other side-effects. Violating this guideline by associating additional actions with the change of state frequently confuses users, because they are used to configuring data in entry controls such as text boxes, radio buttons, and checkboxes and then invoking an action control such as a push button to initiate the action to process the data.[1][2][clarification needed]

One common exception is to enable or display additional user input elements whose relevance depends on the checkbox state. In other situations toggle switch is typically used instead of a checkbox.

HTML

[edit]

Inweb forms, the HTML element <input type="checkbox"> is used to display a checkbox.[3]

Unicode

[edit]
  • U+2610 BALLOT BOX
  • U+2611 BALLOT BOX WITH CHECK
  • U+2612 BALLOT BOX WITH X
  • See also

    [edit]

    References

    [edit]
    1. ^ "Check Boxes". msdn. Retrieved February 5, 2010.
  • ^ Nielsen, Jakob (September 2004). "Checkboxes vs. Radio Buttons". Jakob Nielsen's Alertbox. Archived from the original on August 29, 2012. Retrieved February 5, 2010.
  • ^ "<input type="checkbox"> - HTML: HyperText Markup Language | MDN". developer.mozilla.org. Mozilla. 13 June 2023. Retrieved 19 September 2023.
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=Checkbox&oldid=1226555300"

    Categories: 
    Wikipedia requested images
    Graphical control elements
    Hidden categories: 
    Articles with short description
    Short description is different from Wikidata
    Articles needing additional references from November 2010
    All articles needing additional references
    All articles with unsourced statements
    Articles with unsourced statements from March 2022
    Wikipedia articles needing clarification from March 2022
    Commons category link is on Wikidata
     



    This page was last edited on 31 May 2024, at 11:41 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki