title: Javascript putting an image in a span
body: <p>My code, which should put an image in the <code>&lt;span&gt;</code> is this:</p>
  
  <pre><code>document.getElementById("f_name_mark").innerText = "&lt;img src='images/icons/tick.png' class='mark'&gt;";
  </code></pre>
  
  <p>However, the output is <code>&lt;img src='images/icons/tick.png' class='mark'&gt;</code> as a text string.</p>
  
  <p>Is it that you can't put an image in a <code>&lt;span&gt;</code>?</p>