How To Set Font Style In Css

how to set font style in css

Web Style Sheets CSS tips & tricks World Wide Web Consortium

I am trying to change the color and size of H2 font and H2 link fonts based on the div they are in but have not been successful. What am I doing wrong?