What is a good way to overcome the unfortunate fact that this code will not work as desired:
Name:
Is that what you had in mind?
http://jsfiddle.net/erqrN/1/
.required:after { content:" *"; color: red; }
See https://developer.mozilla.org/en-US/docs/Web/CSS/pseudo-elements