🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Daniel Rose
    Daniel Rose
    4,848 Points

    Why <br>?

    Posted July 30, 2023 9:26pm by Daniel Rose
    Daniel Rose
    4,848 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Victor Ibasco
    Victor Ibasco
    11,035 Points

    HTML - Radio Button - Label Proceeds Input - Why

    Posted March 28, 2019 4:24pm by Victor Ibasco
    Victor Ibasco
    11,035 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Paul Kelly
    Paul Kelly
    3,541 Points

    I still don't understand why you need to both attributes 'id' and 'value', and why they are/have to be the same.

    Posted June 9, 2018 4:15pm by Paul Kelly
    Paul Kelly
    3,541 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    4 Answers

  • Nicholas Wallen
    Nicholas Wallen
    12,278 Points

    So "id" is associated with something else, like the label, whereas "name" is associated with something on backend?

    Posted April 17, 2018 4:48am by Nicholas Wallen
    Nicholas Wallen
    12,278 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • web pad
    web pad
    4,483 Points

    Hi, will it matter if I write the elements in different order? I tried to preview it and it turned okay. Just want to..

    Posted March 15, 2018 11:43pm by web pad
    web pad
    4,483 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

  • Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points

    what's the reason he used<input> element 1st and then used <label> and gave for and class to it!

    Posted November 9, 2017 9:45pm by Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Nafitha Mohamed
    Nafitha Mohamed
    2,637 Points

    radio buttons

    Posted July 9, 2017 4:45pm by Nafitha Mohamed
    Nafitha Mohamed
    2,637 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Kornel L
    Kornel L
    4,368 Points

    Radio buttons and description of it appears in the browser in block instead of inline. Why?

    Posted April 4, 2017 3:25am by Kornel L
    Kornel L
    4,368 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    6 Answers

  • rk15
    rk15
    1,963 Points

    Even after adding the <br> and class="light", radio buttons are not appearing with their respective labels. Why?

    Posted December 19, 2016 2:32pm by rk15
    rk15
    1,963 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Hanna Mower
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hanna Mower
    Front End Web Development Techdegree Student 2,872 Points

    On Previous Quiz: Submit Button Not Working

    Posted November 29, 2016 12:30am by Hanna Mower
    .a{fill-rule:evenodd;}techdegree
    Hanna Mower
    Front End Web Development Techdegree Student 2,872 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    3 Answers

  • Paula Mourad
    Paula Mourad
    5,154 Points

    Labels vs Paragraphs

    Posted September 15, 2016 12:13am by Paula Mourad
    Paula Mourad
    5,154 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

  • Juliette Tworsey
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,625 Points

    Un-selecting radio buttons

    Posted February 28, 2016 10:30pm by Juliette Tworsey
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,625 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Sungbae Park
    Sungbae Park
    9,389 Points

    radio button name="user_age" doesn't work and im able to select both buttons at once

    Posted November 7, 2015 7:16am by Sungbae Park
    Sungbae Park
    9,389 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    0 Answers

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Input and Value

    Posted October 16, 2015 11:09pm by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

  • James Barrett
    James Barrett
    13,253 Points

    What is the value attribute doing for the radio buttons?

    Posted October 12, 2015 2:53pm by James Barrett
    James Barrett
    13,253 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

  • David Elston
    David Elston
    8,112 Points

    <br> doesn't work for me

    Posted July 21, 2015 11:47am by David Elston
    David Elston
    8,112 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    3 Answers

  • kabir k
    PLUS
    kabir k
    Courses Plus Student 18,036 Points

    Why doesn't the <br> element show in the Code Challenge?

    Posted April 18, 2015 8:14pm by kabir k
    kabir k
    Courses Plus Student 18,036 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    0 Answers

  • jobbol
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    jobbol
    Full Stack JavaScript Techdegree Student 19,117 Points

    Can the amount of code in a form be minimized?

    Posted March 30, 2015 3:12am by jobbol
    .a{fill-rule:evenodd;}techdegree
    jobbol
    Full Stack JavaScript Techdegree Student 19,117 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

  • Jason Jun
    Jason Jun
    9,900 Points

    What is the difference between id and name attributes in form elements?

    Posted March 17, 2015 5:00am by Jason Jun
    Jason Jun
    9,900 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    3 Answers

  • Pavle Lucic
    Pavle Lucic
    10,801 Points

    Radio button challenge not passing, last task

    Posted February 28, 2015 8:12am by Pavle Lucic
    Pavle Lucic
    10,801 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    3 Answers

  • Amon Dow III
    Amon Dow III
    4,086 Points

    My Radio Buttons not switching to the other option but the name value is the same like in the video but it not working

    Posted February 27, 2015 12:07am by Amon Dow III
    Amon Dow III
    4,086 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

  • Diego Villaseñor
    Diego Villaseñor
    12,615 Points

    Difference between label and legend?

    Posted January 23, 2015 9:15pm by Diego Villaseñor
    Diego Villaseñor
    12,615 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    1 Answer

  • Vittorio Somaschini
    Vittorio Somaschini
    33,371 Points

    Where to put the label

    Posted November 13, 2014 6:12pm by Vittorio Somaschini
    Vittorio Somaschini
    33,371 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    4 Answers

  • Andrew Hoskins
    Andrew Hoskins
    4,888 Points

    the purposes behind using: "value", "id", "name", and "for" ?

    Posted August 29, 2014 2:56pm by Andrew Hoskins
    Andrew Hoskins
    4,888 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    4 Answers

  • Isaac Asante
    Isaac Asante
    4,752 Points

    Different layout from the video in my browser

    Posted August 10, 2014 12:22am by Isaac Asante
    Isaac Asante
    4,752 Points
    • HTML
    • HTML Forms
    • Choosing Options
    • Radio Buttons

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.