You need a text editor to run the code. Some great text editor are Sublime Text, Text Edit, and Editey. You can get these on the Google App Store or the Apple App Store.
In your text editor, make a folder called Minecraft. Inside the Minecraft folder make a file called index.html. Throughout the tutorial, copy to code into your text editor from the How to do It section.