Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Emphasize to students that in CSS id is typically more specific than class, as beginners often struggle to disambiguate these attributes.

Share Emphasize to students that in CSS id is typically more specific than class, as beginners often struggle to disambiguate these attributes. with FacebookShare Emphasize to students that in CSS id is typically more specific than class, as beginners often struggle to disambiguate these attributes. with Twitter
  • id is more specific and should be unique.
    • id will override anything in a class.
    • When you want to override just one part of a class’ set of properties (font, color, size, etc.) you use an id.

More about this tip

Tags

  • Content Misconceptions
  • CSS
External Source

Interview with Breanna Turcsanyi

Other Tips By
Other Tips By Breanna Turcsanyi

Similar tips

Explain that Strings in Java are a weird-hybrid between a primitive and an Object and as a result they can’t be modified.
Misconception: Students have difficulty understanding why a while(true) loop continues forever.
Misconception: students forget about language-specific or paradigm-specific material (e.g., new/delete or types) when they switch between languages that don’t use the same concepts.
  • CSTT Facebook
  • CSTT Twitter

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Footer Icons by Mohammed Alyousfi. Powered by Drupal.

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College