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

Misconception: Students have difficulty understanding how to share App Inventor projects between different computers.
Misconception: Students frequently forget to close tags or other paired constructs when writing HTML and CSS code, this error is called unclosed pairs. To help prevent this, have students write both open and close HTML tags before adding content.
Misconception: Students think the positioning of scripts within the script area in Scratch influences the order in which they are executed.

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

Privacy Policy