Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points

    :checked

    Posted October 22, 2021 7:52pm by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • saber
    saber
    13,276 Points

    Is it necessary to use an attribute selector for the checkbox?

    Posted January 19, 2020 10:28pm by saber
    saber
    13,276 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Sam Weeks
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sam Weeks
    Front End Web Development Techdegree Student 16,699 Points

    Bit Confused with first and last child with attribute selectors

    Posted November 28, 2019 1:23pm by Sam Weeks
    .a{fill-rule:evenodd;}techdegree
    Sam Weeks
    Front End Web Development Techdegree Student 16,699 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    2 Answers

  • Rouillie Wilkerson
    Rouillie Wilkerson
    10,419 Points

    In the following code, I experimented by removing the bold and replacing it with italics. It didn't work.

    Posted December 10, 2018 10:09pm by Rouillie Wilkerson
    Rouillie Wilkerson
    10,419 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    2 Answers

  • G H Mahimaanvita
    G H Mahimaanvita
    16,234 Points

    Why are both the input:focus and textarea:focus are targeted in css?

    Posted November 10, 2018 9:14am by G H Mahimaanvita
    G H Mahimaanvita
    16,234 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Shloime Kahan
    Shloime Kahan
    4,943 Points

    Border not working

    Posted July 25, 2018 7:35am by Shloime Kahan
    Shloime Kahan
    4,943 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Madeline Yao
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Madeline Yao
    Full Stack JavaScript Techdegree Student 9,611 Points

    Why the Border Color does not Change Once It Receives Focus?

    Posted June 7, 2018 12:29am by Madeline Yao
    .a{fill-rule:evenodd;}techdegree
    Madeline Yao
    Full Stack JavaScript Techdegree Student 9,611 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points

    why is it that we have to specify more, after having specified the type attribute already

    Posted November 10, 2017 11:54pm by Saqib Ishfaq
    Saqib Ishfaq
    13,912 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    2 Answers

  • Sean Flanagan
    Sean Flanagan
    33,237 Points

    font-weight: bolder;

    Posted October 28, 2017 10:24pm by Sean Flanagan
    Sean Flanagan
    33,237 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    3 Answers

  • Alex Tabacchi
    Alex Tabacchi
    2,342 Points

    After the adjacent sibling combinator, why did the teacher add the sibling 'label'?

    Posted May 2, 2017 12:40am by Alex Tabacchi
    Alex Tabacchi
    2,342 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Sherrie Gossett
    Sherrie Gossett
    14,924 Points

    Curious....

    Posted October 17, 2016 2:36am by Sherrie Gossett
    Sherrie Gossett
    14,924 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Kailash Seshadri
    Kailash Seshadri
    3,087 Points

    Can a link be disabled?

    Posted July 17, 2016 1:56pm by Kailash Seshadri
    Kailash Seshadri
    3,087 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Augusto J. Ferriols IV
    Augusto J. Ferriols IV
    5,228 Points

    Workspace associated with Element States Pseudo-Classes not Launching, and a box pops up that it's "Not Authorized".

    Posted May 27, 2016 11:59pm by Augusto J. Ferriols IV
    Augusto J. Ferriols IV
    5,228 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    2 Answers

  • Emmanuel Rojas
    Emmanuel Rojas
    6,994 Points

    How Can I add any color to the check box after it is checked

    Posted March 15, 2016 3:37pm by Emmanuel Rojas
    Emmanuel Rojas
    6,994 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Shazad Kazi
    Shazad Kazi
    10,758 Points

    Inputbox not turning aqua, upon focus?

    Posted September 17, 2015 11:54am by Shazad Kazi
    Shazad Kazi
    10,758 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    3 Answers

  • Aaron Coursolle
    Aaron Coursolle
    18,014 Points

    Pseudo Elements and Element States Pseudo Classes?

    Posted September 10, 2015 2:45pm by Aaron Coursolle
    Aaron Coursolle
    18,014 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • TJ Bear
    PLUS
    TJ Bear
    Courses Plus Student 11,869 Points

    Why doesn't "input[type="checkbox"]:checked + label" in this video worth without "+ label"?

    Posted August 21, 2015 6:43pm by TJ Bear
    TJ Bear
    Courses Plus Student 11,869 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Diego Murray
    Diego Murray
    2,515 Points

    When is a disabled attribute useful?

    Posted August 10, 2015 8:13pm by Diego Murray
    Diego Murray
    2,515 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Huy Tran
    Huy Tran
    1,994 Points

    I don't recall learning about input, focus, textarea in the past videos

    Posted July 24, 2015 3:35am by Huy Tran
    Huy Tran
    1,994 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    2 Answers

  • James Delaplain
    James Delaplain
    5,873 Points

    Why is his check box all

    Posted July 22, 2015 6:56am by James Delaplain
    James Delaplain
    5,873 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    1 Answer

  • Dekin O'Sullivan
    Dekin O'Sullivan
    10,749 Points

    The teacher in this video claims that back in css basics course we covered user action selectors. Where?

    Posted June 28, 2015 2:42pm by Dekin O'Sullivan
    Dekin O'Sullivan
    10,749 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    3 Answers

  • Argzon Haziraj
    PLUS
    Argzon Haziraj
    Courses Plus Student 14,994 Points

    Why do we need to add disabled to input fields ?

    Posted February 22, 2015 4:37am by Argzon Haziraj
    Argzon Haziraj
    Courses Plus Student 14,994 Points
    • CSS
    • CSS Selectors
    • Going Further with Attribute Selectors and Pseudo-Classes
    • Element States Pseudo-Classes

    3 Answers

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord