Creates a
The parameter html
is optional. It accepts a string that sets the inner HTML of the new
Examples
Syntax
createDiv([html])
Parameters
html
String:
inner HTML for the new <div></div>
element.
Returns
p5.Element: new p5.Element object.
Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!