✨ Earn college credits in Cybersecurity, JS, HTML, CSS and 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

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

  • 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
    • Showing results for:
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors
    • Close
  • Peter Huang
    Peter Huang
    5,427 Points

    Why do we use class="form-contact" instead of just simple class of " .form-contact " ?

    Posted on Nov 6, 2022 by Peter Huang
    Peter Huang
    5,427 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Quinton Shuman
    Quinton Shuman
    7,068 Points

    At 3:57 in Guil says "we may also see an attribute selector that's 'qualified' with an element type"

    Posted on Nov 19, 2020 by Quinton Shuman
    Quinton Shuman
    7,068 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Routine Poutine
    Routine Poutine
    26,050 Points

    Attribute selector changes automatically to class and id selectors?

    Posted on Jun 13, 2019 by Routine Poutine
    Routine Poutine
    26,050 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Karla Gallegos
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Karla Gallegos
    Front End Web Development Techdegree Student 5,357 Points

    #container . form-contact

    Posted on Apr 19, 2019 by Karla Gallegos
    .a{fill-rule:evenodd;}techdegree
    Karla Gallegos
    Front End Web Development Techdegree Student 5,357 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Anthony Vick
    Anthony Vick
    5,096 Points

    When using class="form-contact" the settings appear for an instant and then go back to being as if they weren't there.

    Posted on Jan 27, 2019 by Anthony Vick
    Anthony Vick
    5,096 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Matthew Francis
    Matthew Francis
    6,967 Points

    When to use Attribute selector vs a class?

    Posted on Nov 19, 2018 by Matthew Francis
    Matthew Francis
    6,967 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    2 Answers

  • Lia Sansoucy
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Lia Sansoucy
    UX Design Techdegree Graduate 16,070 Points

    For those using the CC for this video, and cannot hear the sound- note that it is not always accurate.

    Posted on Jun 6, 2018 by Lia Sansoucy
    .a{fill-rule:evenodd;}techdegree seal-36
    Lia Sansoucy
    UX Design Techdegree Graduate 16,070 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    2 Answers

  • Dwi Andreas Prawiranegara
    Dwi Andreas Prawiranegara
    7,181 Points

    How do we make the placeholder "email@website.com" to be green in color?

    Posted on Apr 1, 2018 by Dwi Andreas Prawiranegara
    Dwi Andreas Prawiranegara
    7,181 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    2 Answers

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

    submit and reset

    Posted on Jan 11, 2018 by Aakash Srivastav
    .a{fill-rule:evenodd;}techdegree
    Aakash Srivastav
    Full Stack JavaScript Techdegree Student 11,638 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Winston Quin
    Winston Quin
    10,359 Points

    I copied the code in my workspace, saved, and clicked preview in browser, but none of the CSS selectors did anything

    Posted on Sep 20, 2017 by Winston Quin
    Winston Quin
    10,359 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    2 Answers

  • Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points

    Why use [class = "form-contact"] {...}instead of .form-contact {...}

    Posted on Sep 17, 2017 by Andre Kucharzyk
    Andre Kucharzyk
    4,479 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Pawel Ellwart
    Pawel Ellwart
    12,993 Points

    Text overlaps to the content

    Posted on Jul 23, 2017 by Pawel Ellwart
    Pawel Ellwart
    12,993 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    3 Answers

  • Hamza Saleemi
    Hamza Saleemi
    4,257 Points

    Can't select the a element

    Posted on Jul 16, 2017 by Hamza Saleemi
    Hamza Saleemi
    4,257 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Matthew Keys
    Matthew Keys
    1,922 Points

    Confused regarding "for" and "type" and stuff like that

    Posted on Mar 21, 2017 by Matthew Keys
    Matthew Keys
    1,922 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Andrew Teece
    Andrew Teece
    4,885 Points

    'form' & 'div' needed before [ ]?

    Posted on Jan 27, 2017 by Andrew Teece
    Andrew Teece
    4,885 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • claudius mainja
    claudius mainja
    9,661 Points

    getting confused

    Posted on Nov 9, 2016 by claudius mainja
    claudius mainja
    9,661 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    3 Answers

  • Arikaturika Tumojenko
    Arikaturika Tumojenko
    8,897 Points

    form [class="form-contact"] and [class="form-contact"] not working

    Posted on Jul 27, 2016 by Arikaturika Tumojenko
    Arikaturika Tumojenko
    8,897 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    2 Answers

  • Anna Burrell
    Anna Burrell
    1,898 Points

    Why doesn't my code turn the Class selectors' elements red?

    Posted on Jun 27, 2016 by Anna Burrell
    Anna Burrell
    1,898 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Reagen Rahardjo
    Reagen Rahardjo
    3,770 Points

    How to target attribute in one specific class?

    Posted on Jun 5, 2016 by Reagen Rahardjo
    Reagen Rahardjo
    3,770 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Kiran Reddy
    PLUS
    Kiran Reddy
    Courses Plus Student 1,895 Points

    attribute doesn't change the color of email

    Posted on May 4, 2016 by Kiran Reddy
    Kiran Reddy
    Courses Plus Student 1,895 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Shadab Khan
    Shadab Khan
    5,470 Points

    Class selector targeting labels?

    Posted on Nov 28, 2015 by Shadab Khan
    Shadab Khan
    5,470 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Zubair Siddique
    Zubair Siddique
    4,889 Points

    How come they went on quickly without explaining new selectors like #type or #placeholder ?

    Posted on Sep 13, 2015 by Zubair Siddique
    Zubair Siddique
    4,889 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Alex Oates
    Alex Oates
    7,171 Points

    Targeting the "placeholder" type doesn't work, yet targeting "email" does. Why is this? Using Safari.

    Posted on Aug 14, 2015 by Alex Oates
    Alex Oates
    7,171 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Kim Gee
    Kim Gee
    3,841 Points

    [class] vs [id]

    Posted on Jun 16, 2015 by Kim Gee
    Kim Gee
    3,841 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Li Mbo
    Li Mbo
    5,096 Points

    what is the difference between div[id="name1"] and div #name1 ?

    Posted on May 28, 2015 by Li Mbo
    Li Mbo
    5,096 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    1 Answer

  • Richard Nicholls
    Richard Nicholls
    1,301 Points

    We are typing div[id="container"] to select the container. why cant we just use #container instead?

    Posted on Apr 22, 2015 by Richard Nicholls
    Richard Nicholls
    1,301 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    2 Answers

  • Richard Nicholls
    Richard Nicholls
    1,301 Points

    Workspace not loading

    Posted on Apr 21, 2015 by Richard Nicholls
    Richard Nicholls
    1,301 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

    7 Answers

  • Jordan Hill
    Jordan Hill
    3,167 Points

    How come each video has its own workspace?

    Posted on Mar 30, 2015 by Jordan Hill
    Jordan Hill
    3,167 Points
    • CSS
    • CSS Selectors
    • Selectors - Beyond the Basics
    • Attribute Selectors

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