# Dom create statements / functions

**URL:** <https://discourse.processing.org/t/dom-create-statements-functions/41745>\
**Category:** Beginners\
**Created:** [April 17, 2023, 7:33pm UTC](https://discourse.processing.org/t/dom-create-statements-functions/41745 "2023-04-17T19:33:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarlook](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jarlook](https://discourse.processing.org/u/jarlook)\
**Post date:** [April 17, 2023, 7:33pm UTC](https://discourse.processing.org/t/dom-create-statements-functions/41745/1 "2023-04-17T19:33:51Z")

</div>

Beginning to use some of the p5.js Dom “create” statements (e.g. createButton). I see from the documentation and earlier topics that there are a variety of methods (e.g., position and style), but I’d like to look at the complete set with their options. Where might I find that info?

Thanks.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 17, 2023, 8:35pm UTC](https://discourse.processing.org/t/dom-create-statements-functions/41745/2 "2023-04-17T20:35:13Z")

</div>

Their datatype is [p5.Element](https://p5js.org/reference/#/p5.Element).

However, some of them can have additional methods, like for example [**createCheckbox()**](https://p5js.org/reference/#/p5/createCheckbox), which appends method **checked()** to its instance & redefines method [**value()**](https://p5js.org/reference/#/p5.Element/value):

> <https://github.com/processing/p5.js/blob/v1.6.0/src/dom/dom.js#L588-L600>

> <https://github.com/processing/p5.js/blob/v1.6.0/src/dom/dom.js#L602-L605>

---

<div class="post-metadata">

**Author:** ![jarlook](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jarlook](https://discourse.processing.org/u/jarlook)\
**Post date:** [April 17, 2023, 8:55pm UTC](https://discourse.processing.org/t/dom-create-statements-functions/41745/3 "2023-04-17T20:55:39Z")

</div>

Aha … thanks for the general reference to p5.element and especially for the info/method for looking at the additional methods.
