diff --git a/index.html b/index.html index d4130dc..a74cd43 100644 --- a/index.html +++ b/index.html @@ -321,13 +321,13 @@

Example

h('li', 'one'), h('li', 'two'), h('li', 'three'))), - h('h2', 'content title', { style: {'background-color': '#f22'} }), - h('p', - "so it's just like a templating engine,\n", - "but easy to use inline with javascript\n"), - h('p', - "the intention is for this to be used to create\n", - "reusable, interactive html widgets. ")) + h('h2', 'content title', { style: {'background-color': '#f22'} }), + h('p', + "so it's just like a templating engine,\n", + "but easy to use inline with javascript\n"), + h('p', + "the intention is for this to be used to create\n", + "reusable, interactive html widgets. "))

h (tag, attrs, [text?, Elements?,...])

Create an HTMLElement. first argument must be the tag name.

classes & id