css click event jquery

CSS
 $('h1').click(function () {
        $(this).css('color', 'blue')
    });
Source

Also in CSS: