Hi
In your page if you have around 20 <p> take example, in that <p> some of that you want add red color through java script, that time you can make one extra class, ex: .red
In HTML file <p class "red"> to check </p>
In JS you will write all <p> which have class red, you need red color, so automatically that will apply
Regards
Mar 11, 2011