레퍼런스 createDiv()

createDiv()

Creates a

element.

elements are commonly used as containers for other elements.

The parameter html is optional. It accepts a string that sets the inner HTML of the new

.

예제

구문

createDiv([html])

매개변수

html
String:

inner HTML for the new <div></div> element.

반환값

p5.Element: new p5.Element object.
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!

관련 레퍼런스