When doing a XSS, we usually put the JavaScript code between the <script>
tags.
I have noticed that HTML injections are very similar because you are doing almost the same thing, but using different tags (e.g <h1>
, <p>
, <span>
, etc.)
The result might very different. When doing a XSS attack, you might create the usual popup with alert()
, while doing a HTML injection you might put some fancy text onto the webpage.