🤑 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
  • William Domenech
    William Domenech
    7,259 Points

    when i add the label tag it doesnt go striaght to the colum its suppose to go to

    Posted April 1, 2023 8:46pm by William Domenech
    William Domenech
    7,259 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • pratyush raj
    pratyush raj
    7,097 Points

    why we set diaplay:block in Label CSS layout

    Posted July 21, 2020 4:18am by pratyush raj
    pratyush raj
    7,097 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

  • Michael Bran
    Michael Bran
    1,687 Points

    Is there any reason why simply using an h tag to do this wouldnt work just as well? <h3>Name:</h3>

    Posted May 10, 2019 5:15pm by Michael Bran
    Michael Bran
    1,687 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • Bradley Hapgood
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Bradley Hapgood
    Full Stack JavaScript Techdegree Student 12,809 Points

    Would it be just as good to include a "placeholder" attribute?

    Posted April 14, 2019 4:35pm by Bradley Hapgood
    .a{fill-rule:evenodd;}techdegree
    Bradley Hapgood
    Full Stack JavaScript Techdegree Student 12,809 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • Aakash Srivastav
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points

    <label> element

    Posted March 22, 2018 12:13pm by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • web pad
    web pad
    4,483 Points

    In order so that the "for"attribute in label tag to work, must each input element have an 'id' ?

    Posted March 14, 2018 9:21pm by web pad
    web pad
    4,483 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

  • Damian Toczek
    Damian Toczek
    4,471 Points

    What's the difference between for="abc" and <input> inside a <label> element?

    Posted January 15, 2018 5:39pm by Damian Toczek
    Damian Toczek
    4,471 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

  • Immanuel Jaeggi
    Immanuel Jaeggi
    5,164 Points

    My lables don`t focus on the corresponding fields when clicked on.

    Posted January 10, 2018 8:30pm by Immanuel Jaeggi
    Immanuel Jaeggi
    5,164 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • Stefan Cutajar
    Stefan Cutajar
    7,747 Points

    Styling forms

    Posted January 4, 2018 6:39pm by Stefan Cutajar
    Stefan Cutajar
    7,747 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

  • Dee K
    Dee K
    17,815 Points

    Label.light?

    Posted September 24, 2016 9:19pm by Dee K
    Dee K
    17,815 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

  • Brent McDonald
    Brent McDonald
    1,261 Points

    My labels don't focus on the elements when clicked like in the tutorial. Is this still a supported function?

    Posted August 22, 2016 10:59am by Brent McDonald
    Brent McDonald
    1,261 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • Keith Corona
    Keith Corona
    9,553 Points

    "Name" input field is not grey or sized like the other input boxes, problem?

    Posted January 5, 2016 6:39am by Keith Corona
    Keith Corona
    9,553 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

  • Sahar Nasiri
    Sahar Nasiri
    7,454 Points

    Labels' font

    Posted October 12, 2015 9:23am by Sahar Nasiri
    Sahar Nasiri
    7,454 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    4 Answers

  • rajbee
    rajbee
    6,657 Points

    Do we really need to have the "for" attribute in a label ?

    Posted September 8, 2015 6:25am by rajbee
    rajbee
    6,657 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    2 Answers

  • Ryan Boyd
    Ryan Boyd
    7,561 Points

    How to get Label inside of form box?

    Posted April 20, 2015 6:40am by Ryan Boyd
    Ryan Boyd
    7,561 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    4 Answers

  • Hannah Demers
    Hannah Demers
    2,894 Points

    Opened workspace and all the work I did in the form basics badge is gone.....

    Posted April 6, 2015 4:51pm by Hannah Demers
    Hannah Demers
    2,894 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    6 Answers

  • Meredith Wiegman
    Meredith Wiegman
    4,804 Points

    Form field focus by placing input element inside label element

    Posted February 12, 2015 4:33pm by Meredith Wiegman
    Meredith Wiegman
    4,804 Points
    • HTML
    • HTML Forms
    • Organizing Forms
    • The Label Element

    1 Answer

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.