HTML5 is used to create the basic structure and presenting content in WWW, but Javascript is a fundamental part of HTML5. Web pages that are created with HTML define different elements present in a web page, whereas Javascript is used to define the interactive elements of a webpage which help to engage users .