I'm trying to dynamically create an img tag with the "createElement" function.
However the result comes out like this:
but of course, I would like the tag to be closed:
Is this possible to do with createElement? Or is there another function I should use?
However the result comes out like this:
Code:
<img src="target" alt="noimage">
Code:
<img src="target" alt="noimage" />
Is this possible to do with createElement? Or is there another function I should use?