Understanding attribute selectors

Part of the CSS2 standard, and expanded in CSS3, an attribute selector selects attributes, rather than tags, in your HTML. Variations include simple, exact, partial, and beginning and ending substrings.

By Jen Kramer
April 28, 2016
Attribute Selectors Attribute Selectors

Learn the ins and outs of CSS with CSS: The Definitive Collection, a series of short and practical ebooks taken from the upcoming book CSS: The Definitive Guide, 4th Edition.

Learn faster. Dig deeper. See farther.

Join the O'Reilly online learning platform. Get a free trial today and find answers on the fly, or master something new and useful.

Learn more
Post topics: Web Programming
Share: