Creating a Javascript file and connecting it to your HTML file.Code & tutorials: http://learn-the-web.algonquindesign.ca/topics/javascript-syntax/