Change HTML attributes for CSS rules