OnlineCBT Logo OnlineCBT
HTML Tutorial
HTML · LESSON 32

Radio Buttons and Checkboxes

By Ratan Updated: 16 Oct 2026

Collect single and multiple selections using radio buttons (<input type='radio'>) and checkboxes.

Level: Beginner to Advanced
Duration: ~60 Mins Deep-Dive

1. Radio Buttons (type="radio")

Radio buttons are used when the user must select exactly one option from a mutually exclusive set (e.g. Multiple Choice Question options):

Question 1: What is the capital of India?


2. Checkboxes (type="checkbox")

Checkboxes allow users to select zero, one, or multiple options independently:




📝 Live Lesson Practice

HTML/CSS JavaScript Python C++ C PHP
⌨️ Practice Inputs (लाइव इनपुट भरें) (खाली होने पर RED, भरने पर GREEN underline)
💻 Code Editor (Monaco VS Code Engine)
👀 Live Preview
पता संपर्क करें

+91 7877547686

ई-मेल

onlinecbtportal@gmail.com

हेल्पलाइन नंबर

+91 7877547686


डाउनलोड करने के लिए क्लिक करें
Get it on Google Play

ऐप डाउनलोड करने
के लिए Google Play पर
उपलब्ध है

WhatsApp Chat