createP()

段落要素を作成します。

要素は一般的に段落の長さのテキストに使用されます。

パラメータhtmlはオプションです。新しい

の 内部HTMLを設定する文字列を受け付けます。

実例

シンタックス

createP([html])

パラメーター

html
String:

新しい<p></p>要素の内部HTML。

リターン

p5.Element: 新しいp5.Elementオブジェクト。
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!

関連するリファレンス