CSS Naming Classes

There are two things wrong with this from a best practices standpoint. Both have to do with the naming of the classes on the

elements: rederror and bolduser both convey presentation information that implies what those elements look like. The standard practice is to avoid basing a name on a description of a “physical” or visual characteristic.

A better solution might be:

Warning: Username not found!

Comments are closed.