You write your HTML5 code using the Forge JavaScript API which gives you access to native features such as the camera and contacts API.