Editable content

Some attributes work on every element.

HTML · Editable contentBeginner
<p contenteditable="true">Click and type here.</p>
<p hidden>This paragraph is not shown.</p>
<button type="button" title="Shows a tooltip" tabindex="0">Hover me</button>
<p id="x" class="note" data-user-id="42" lang="en">Custom data attributes start with data-.</p>
contenteditablehiddentabindexglobal attributes