<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/yes-or-no--sb1cwzwvl" -->

---
title: “Yes or No?” | daily.dev
description: A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox always the best UX? It depends, of course:Use radio buttons if you expect the...
canonical: https://daily.dev/posts/yes-or-no--sb1cwzwvl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: “Yes or No?” | daily.dev
og:description: A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox always the best UX? It depends, of course:Use radio buttons if you expect the...
og:url: https://daily.dev/posts/yes-or-no--sb1cwzwvl
og:image: https://api.daily.dev/og/posts/sb1cWZwvl.png
og:image:alt: “Yes or No?”
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# “Yes or No?”

**[CSS-Tricks](https://daily.dev/sources/css_tricks)** · 14 upvotes · 2 comments

## Summary

A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox always the best UX? It depends, of course:Use radio buttons if you expect the answer to be equally distributed. If you want a concrete, deliberate, explicit answer and don’t want a default selection, use radio buttons.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://css-tricks.com/yes-or-no/>

## Community discussion

Top comments from developers on daily.dev.

**@ghost** · 0 upvotes

> Very Basic!

**@ghost** · 0 upvotes

> If you need to know which input selection you can use of what are the differences then this is the post for you!

---

[View this post on daily.dev](https://daily.dev/posts/yes-or-no--sb1cwzwvl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"“Yes or No?”","url":"https://daily.dev/posts/yes-or-no--sb1cwzwvl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/yes-or-no--sb1cwzwvl"},"datePublished":"2020-12-23T00:17:45.556Z","dateModified":"2021-10-07T14:17:10.317Z","description":"A checkbox represents this: it’s either on or off (uh, mostly). But is a checkbox always the best UX? It depends, of course:Use radio buttons if you expect the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4a56041e20e5aaf55858dd7d573994f8","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4a56041e20e5aaf55858dd7d573994f8","isAccessibleForFree":true,"articleSection":"CSS-Tricks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"CSS-Tricks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/css_tricks","url":"https://daily.dev/sources/css_tricks"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/yes-or-no--sb1cwzwvl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":""}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"CSS-Tricks","item":"https://daily.dev/sources/css_tricks"},{"@type":"ListItem","position":3,"name":"“Yes or No?”"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/yes-or-no--sb1cwzwvl","comment":[{"@type":"Comment","text":"Very Basic!","datePublished":"2020-12-23T07:39:00.272Z","url":"https://daily.dev/posts/sb1cWZwvl#c-0yW9wqOyL","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"}},{"@type":"Comment","text":"If you need to know which input selection you can use of what are the differences then this is the post for you!","datePublished":"2020-12-23T12:58:29.164Z","url":"https://daily.dev/posts/sb1cWZwvl#c-lbFhnD6ii","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"}}]}
```

