Can somebody explain the working of this hover code?

a.ex2:hover, a.ex2:active {font-size: 150%;} a.ex5:visited, a.ex5:link {text-decoration: none;} a.ex5:hover, a.ex5:active {text-decoration: underline;}

This link changes font-size

This link changes text-decoration

What is a.ex used for and what does a.ex2:active mean ?
Why does ex5 have 2 style statements ?

anchor tags <a> with the class ex2, ex5
:hover is a psuedo class that changes the styles if you hover the element.
:link is a psuedo class to style a non-visited link.
:active is a psuedo class to style selected link, like clicked.