Blog Post

Incorrect Selectors

The Zombie: Using .id, #class, .element, #element, id or class as selectors

Always a Zombie? Yes

Severity: High. 

Why is it a Zombie: Elements, classes, and ids are not selected by the selectors.

Cure the Zombie by: Always use a # for ids, a . for classes and no identifying character for elements e.g. 

p { color: red; }

.class-name { color: green; }

#id-name { color: blue; }