Question: can html files contain viruses?
Answer: For a quick answer – No, it is impossible for pure HTML to be a virus since it is literally just text and will never be executed. But take that with a pinch of salt. Since there are still plenty of possible threats such as phishing, masquerading, and even redirecting to download an actual virus file.