HTML and CSS Reference
In-Depth Information
<section contenteditable="true">
<h1 contenteditable="false">
The Chief
</h1>
<p>The Chief is...
...meaningless.</p>
<img
src="headshots/thechief.gif"
alt="The Chief">
</section>
In this example, the <h1> element isn't
editable, but every other child ele-
ment of the <section> element is.
Note that IE8 doesn't treat contenteditable as inheritable.
You'll need to specify contenteditable="true" on every
element you want to be editable in IE.
The spellcheck attribute
A common feature of word processors is inline spell-checking—spell-
ing mistakes are highlighted by a red squiggle. This feature is also
Search WWH ::




Custom Search