title: Drawing line in a div with Javascript
body: <p>With a canvas you can draw a line with javascript like this,</p>
  
  <pre><code>&lt;html&gt;
  &lt;canvas id="myCanvas" width="500" height="300" style="border:1px solid #d3d3d3;"&gt;&lt;/canvas&gt;
  
  &lt;script&gt;
  var c=document.getElementById("myCanvas");
  var ctx = c.getContext("2d");
  ctx.moveTo(20,20);
  ctx.lineTo(100,100);
  ctx.stroke();
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can i do the same thing, but by using a div tag instead of a canvas?
  The reason i want to do this is beacuse the canvas does not seem to work on IE and i know that Google graphs make use of div tags and not canvases to draw graphs, so it might be possible.</p>
  
  <p>I tried replacing the canvas with a div, but it does not work.</p>