Reference createP()

createP()

Creates a

element.

elements are commonly used for paragraph-length text.

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

.

Examples

Syntax

createP([html])

Parameters

html

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

Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

Related References