Changing the Default App on the Mac

As a web developer I use several programs. I wanted this particular file to be opened in this program by default. I remember I had done this step before but forgot how I changed the default program. After a quick search I came across this article from iMore.  It was a great tutorial very well detailed and included pictures.