title: How to align an image using javaScript
body: <p>I'm creating an image using javascript in an HTML page, I want to lift the image on top of the line using the script, this is my script for the image alignment:</p>
  
  <pre><code>var img = document.createElement("img");
  
  img.src="meme.jpg";
  img.width=500;
  img.height=500;
  img.top=50;
  img.alt='Meme';
  document.body.appendChild(img);
  </code></pre>
  
  <p>This is how it looks now:
  <a href="https://i.stack.imgur.com/OsoCe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OsoCe.jpg" alt="enter image description here"></a> </p>
  
  <p>All I need is to make the image on top of the line a bit on the right. </p>