Q:

how to apply the style in all class?

I have tried to apply the styles in specified class even it contain some numeric or string values together attribute, but the style doesn't apply, I don't know where I made a mistake, below I have placed my code for your kind reference. 
HTML
 <p class="test">Some text contains....</p>
 <p class="test2">Some text contains....</p>
 <p class="test4">Some text contains....</p>
 <p class="testa">Some text contains....</p>
 <p class="test1">Some text contains....</p>

Css:
 p.test*
 {
 color: blue;
 font-size:150%;
 }

Please advise me how to solve this?
Thanks.

A:

Use in your css:
p[class^="test"]{
 color: blue;
 font-size:150%;
}

