{"id":124,"date":"2026-04-10T09:01:20","date_gmt":"2026-04-10T09:01:20","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=124"},"modified":"2026-04-27T16:12:36","modified_gmt":"2026-04-27T16:12:36","slug":"radio-checkbox-dropdown","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/","title":{"rendered":"\u00a0Radio, Checkbox, Dropdown"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">HTML form controls like radio buttons, checkboxes, and dropdowns are used to collect different types of user input. They help users select options easily.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Radio Buttons<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Radio buttons are used when a user can select only one option from a group.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Radio Buttons<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=&#8221;male&#8221;&gt; Male<br>&lt;input type=&#8221;radio&#8221; name=&#8221;gender&#8221; value=&#8221;female&#8221;&gt; Female<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How Radio Buttons Work<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">All radio buttons in a group must have the same name attribute. This ensures only one option can be selected at a time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Checkboxes<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Checkboxes are used when a user can select multiple options.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Checkboxes<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;input type=&#8221;checkbox&#8221; name=&#8221;hobby&#8221; value=&#8221;reading&#8221;&gt; Reading<br>&lt;input type=&#8221;checkbox&#8221; name=&#8221;hobby&#8221; value=&#8221;sports&#8221;&gt; Sports<br>&lt;input type=&#8221;checkbox&#8221; name=&#8221;hobby&#8221; value=&#8221;music&#8221;&gt; Music<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How Checkboxes Work<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Each checkbox works independently, so users can select one or more options.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Dropdown (Select Menu)<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A dropdown is used to show a list of options in a compact way. Users can select only one option unless multiple selection is enabled.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Dropdown<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;select&gt; &lt;option&gt;Pakistan&lt;\/option&gt; &lt;option&gt;India&lt;\/option&gt; &lt;option&gt;USA&lt;\/option&gt; &lt;\/select&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Multiple Selection Dropdown<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can allow multiple selections by adding the multiple attribute.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Multiple Dropdown<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;select multiple&gt; &lt;option&gt;HTML&lt;\/option&gt; &lt;option&gt;CSS&lt;\/option&gt; &lt;option&gt;JavaScript&lt;\/option&gt; &lt;\/select&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Radio buttons allow one selection, checkboxes allow multiple selections, and dropdowns provide a compact list of options. These elements make forms more interactive and user-friendly.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/html\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">HTML Intermediate > Forms &#038; User Input > Radio, Checkbox, Dropdown<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777306339774\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":33,"template":"","class_list":["post-124","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u00a0Radio, Checkbox, Dropdown - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML form controls like radio buttons, checkboxes, and dropdowns to create interactive and user-friendly forms.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00a0Radio, Checkbox, Dropdown - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML form controls like radio buttons, checkboxes, and dropdowns to create interactive and user-friendly forms.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T16:12:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/radio-checkbox-dropdown\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/radio-checkbox-dropdown\\\/\",\"name\":\"\u00a0Radio, Checkbox, Dropdown - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T09:01:20+00:00\",\"dateModified\":\"2026-04-27T16:12:36+00:00\",\"description\":\"Learn HTML form controls like radio buttons, checkboxes, and dropdowns to create interactive and user-friendly forms.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/radio-checkbox-dropdown\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/radio-checkbox-dropdown\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/radio-checkbox-dropdown\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > Forms & User Input > Radio, Checkbox, Dropdown\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\",\"name\":\"HTML learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/html\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u00a0Radio, Checkbox, Dropdown - HTML learning mastery","description":"Learn HTML form controls like radio buttons, checkboxes, and dropdowns to create interactive and user-friendly forms.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/","og_locale":"en_US","og_type":"article","og_title":"\u00a0Radio, Checkbox, Dropdown - HTML learning mastery","og_description":"Learn HTML form controls like radio buttons, checkboxes, and dropdowns to create interactive and user-friendly forms.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T16:12:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/","name":"\u00a0Radio, Checkbox, Dropdown - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T09:01:20+00:00","dateModified":"2026-04-27T16:12:36+00:00","description":"Learn HTML form controls like radio buttons, checkboxes, and dropdowns to create interactive and user-friendly forms.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/radio-checkbox-dropdown\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > Forms & User Input > Radio, Checkbox, Dropdown"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/html\/#website","url":"https:\/\/gigz.pk\/html\/","name":"HTML learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/html\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/media?parent=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}