title: Generate html from a pre-rendered canvas element or component such as textbox?
body: <p>I am learning JavaScript and HTML5 and out of curiosity wondered:</p>
  
  <p>1) Is it possible to generate HTML from a Canvas element (s)? So for example we have a Canvas shape, on the click of a button it generates the html5 code that rendered it?</p>
  
  <p>2) We have a HTML DOM button on the page, converting this into its' html5 code?</p>
  
  <p>Thanks</p>