Welcome to the Treehouse Community
Looking to learn something new?
why would we be unable to add a class or ID to an HTML element?
In this video, Gil mentions a use of the substring attribute selectors might be when we can't add an id or class to an HTML element. Why would this happen?
Kevin Korte28,109 Points
Sometimes when you're using a content management system, or a plugin, or anything that generates it's own html, you might not have control of the classes and ids when the code is being generated on the fly. In those case, attribute selectors come in very handy.