CodePen

HTML

            
              <div id="clickme">Click Me!</div>
            
          
!

CSS

            
              
            
          
!

JavaScript

            
              function turnRed() {
    this.style.color = "red";
}
b = document.getElementById('clickme');
b.onclick = turnRed;

            
          
!
999px
Loading ..................