-
Styling HTML elements in CSS without using classes / IDs
Something I came across for the first time recently is the practice of using HTML element attributes to apply CSS styles. The mathematics can be found at http://www.w3.org/TR/CSS2/selector.html#attribute-selectors, but a basic example of where I use this technique is as follows… starting with a basic form… Demo Form Your Name Your Email Address To lay…