Yes, knowledge of HTML and JavaScript will likely be necessary for an ethical hacker of websites and software. HTML controls the web page's layout and looks for any hacker. It is not regarded as rather a markup language.