how to use html image tag in javascript code example Example: img html <img src="smiley.gif" alt="Smiley face" height="42" width="42">