You can do this:
And use this test.css:
<html> <head> <link rel="stylesheet" type="text/css" href="test.css" /> </head> <body> <p class="myfont green">this is some text bla bla bla</p> <p class="myfont blue">this is some more text but in a different color</p> </body> </html>
And use this test.css:
.myfont{ font-size: 20px; } .green{ color: #00FF00; } .blue{ color: #0000FF; }