Please explain step by step how to link that code to a basic html frontend (include the html code as well).