AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

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

New No-Code Track! 🚀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
    • 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
  • 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
      • • Vibe Coding
  • Emmanuel Idiong
    Emmanuel Idiong
    5,953 Points

    css styling

    Posted May 19, 2015 8:19am by Emmanuel Idiong
    Emmanuel Idiong
    5,953 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    1 Answer

  • sawtoothwave
    sawtoothwave
    1,289 Points

    Why is there no space after the element when using an attribute selector ("a[class]" instead of "a [class]")?

    Posted December 15, 2014 3:12am by sawtoothwave
    sawtoothwave
    1,289 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    7 Answers

  • Paul Hegarty
    PLUS
    Paul Hegarty
    Courses Plus Student 10,109 Points

    If you have multiple forms and want to style them differently how would you target each form using attribute selectors?

    Posted November 5, 2014 3:06pm by Paul Hegarty
    Paul Hegarty
    Courses Plus Student 10,109 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    2 Answers

  • CHIAHUI HSIEH
    CHIAHUI HSIEH
    1,965 Points

    When I typed [class] {background-color:crimson}, the whole page background becomes crimson.

    Posted October 18, 2014 5:40pm by CHIAHUI HSIEH
    CHIAHUI HSIEH
    1,965 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    4 Answers

  • shareyourpeace
    shareyourpeace
    3,244 Points

    Are attribute selectors used in 2014?

    Posted October 1, 2014 8:22pm by shareyourpeace
    shareyourpeace
    3,244 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    2 Answers

  • Alex Friant
    Alex Friant
    6,444 Points

    The Project Files "index.html" is slightly different than what's in the video, rendering the instructions not to work.

    Posted August 27, 2014 4:16am by Alex Friant
    Alex Friant
    6,444 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    7 Answers

  • nathan marq
    nathan marq
    1,939 Points

    How can you tell when to use attribute selectors ???

    Posted August 5, 2014 2:41am by nathan marq
    nathan marq
    1,939 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    3 Answers

  • dane wesolko
    dane wesolko
    7,353 Points

    Class Attributes Use

    Posted June 28, 2014 4:41pm by dane wesolko
    dane wesolko
    7,353 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    3 Answers

  • Ryan Carson
    Ryan Carson
    23,287 Points

    In CSS, why use Attribute Selectors, instead of Classes?

    Posted June 24, 2014 1:18pm by Ryan Carson
    Ryan Carson
    23,287 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    4 Answers

  • Paul Trimor
    Paul Trimor
    5,388 Points

    Whenever I use the [class] selector, it selects the entire body.

    Posted June 3, 2014 9:21pm by Paul Trimor
    Paul Trimor
    5,388 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    4 Answers

  • Dave Scott
    Dave Scott
    2,179 Points

    Unqualified Attribute Selectors not supported in CodePen?

    Posted May 18, 2014 7:49pm by Dave Scott
    Dave Scott
    2,179 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    3 Answers

  • Gavin Richardson
    Gavin Richardson
    3,218 Points

    Error on the project file

    Posted May 13, 2014 8:53am by Gavin Richardson
    Gavin Richardson
    3,218 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    1 Answer

  • welmoet van Kammen
    welmoet van Kammen
    5,507 Points

    syntax attribute selector

    Posted May 5, 2014 8:31pm by welmoet van Kammen
    welmoet van Kammen
    5,507 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    0 Answers

  • Jack Kenyon
    Jack Kenyon
    3,344 Points

    What Is The Purpose Of Attribute Selectors For Specific Elements?

    Posted April 25, 2014 10:01am by Jack Kenyon
    Jack Kenyon
    3,344 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    2 Answers

  • Stein Christensen
    Stein Christensen
    3,592 Points

    Attribute Selectors

    Posted April 17, 2014 11:27pm by Stein Christensen
    Stein Christensen
    3,592 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    2 Answers

  • Rachel Self
    Rachel Self
    4,405 Points

    Solved : Typo

    Posted April 5, 2014 6:11pm by Rachel Self
    Rachel Self
    4,405 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    0 Answers

  • Sharina V. Jones
    Sharina V. Jones
    11,459 Points

    Attribute selector vs descendant selector

    Posted April 1, 2014 3:08am by Sharina V. Jones
    Sharina V. Jones
    11,459 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    3 Answers

  • Tatiana Perry
    Tatiana Perry
    17,156 Points

    Difference between attribute and class selectors

    Posted March 26, 2014 12:31am by Tatiana Perry
    Tatiana Perry
    17,156 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    1 Answer

  • Stephen Herbster
    PLUS
    Stephen Herbster
    Courses Plus Student 4,134 Points

    input type

    Posted March 7, 2014 9:05pm by Stephen Herbster
    Stephen Herbster
    Courses Plus Student 4,134 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    1 Answer

  • Paolo Di Pasquale
    Paolo Di Pasquale
    4,251 Points

    Attribute Selectors

    Posted March 5, 2014 11:54am by Paolo Di Pasquale
    Paolo Di Pasquale
    4,251 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    3 Answers

  • Ryan Creighton
    Ryan Creighton
    992 Points

    Source error

    Posted March 4, 2014 11:39pm by Ryan Creighton
    Ryan Creighton
    992 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    0 Answers

  • Gillian Singletary
    Gillian Singletary
    1,093 Points

    Error in project files

    Posted March 4, 2014 11:02pm by Gillian Singletary
    Gillian Singletary
    1,093 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    5 Answers

  • Jonathan Rojas
    Jonathan Rojas
    6,640 Points

    Change needed for index.html

    Posted February 14, 2014 8:07pm by Jonathan Rojas
    Jonathan Rojas
    6,640 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    2 Answers

  • Nikolay Batrakov
    Nikolay Batrakov
    9,604 Points

    class vs attribute selectors

    Posted February 10, 2014 3:43pm by Nikolay Batrakov
    Nikolay Batrakov
    9,604 Points
    • CSS
    • CSS Foundations
    • Selectors
    • Basic Attribute Selectors

    3 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.