function addElement(elt, pInst, media) {
            var node = pInst._userNode ? pInst._userNode : document.body;
            node.appendChild(elt);
            var c = media
              ? new _main.default.MediaElement(elt, pInst)
              : new _main.default.Element(elt, pInst);
            pInst._elements.push(c);
            return c;
          }
Creates a `&lt;p&gt;&lt;/p&gt;` element in the DOM with given inner HTML. Used
for paragraph length text.

@method createP
@param  {String} [html] inner HTML for element created
@return {p5.Element} pointer to <a href="#/p5.Element">p5.Element</a> holding created node
@example
<div><code>
let p = createP('this is some text');
p.style('font-size', '16px');
p.position(10, 0);
</code></div>