HTML CSS Reference/HTML Attributes Reference/contenteditable — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (1 версия)
 
(нет различий)

Текущая версия на 08:20, 26 мая 2010

"contenteditable" Example

    
<HTML>
<head><Title>Example For contenteditable</Title></head>
<BODY>
<p contenteditable="true">contenteditable</p>
</BODY>
</HTML>



contenteditable is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<a>                             <acronym>                     |
|                |<address>                       <b>                           |
|                |<bdo>                           <big>                         |
|                |<blockquote>                    <body>                        |
|                |<button>                        <center>                      |
|                |<cite>                          <code>                        |
|                |<custom>                        <dd>                          |
|                |<del>                           <dfn>                         |
|                |<dir>                           <div>                         |
|                |<dl>                            <dt>                          |
|                |<em>                            <fieldset>                    |
|                |<font>                          <form>                        |
|                |<hn>                            <i>                           |
|                |<input type="button">           <inputtype="password">        |
|                |<input type="radio">            <input type="reset">          |
|                |<inputtype="submit">            <input type="text">           |
|                |<ins>                           <isindex>                     |
|                |<kbd>                           <label>                       |
|                |<legend>                        <li>                          |
|                |<listing>                       <marquee>                     |
|                |<menu>                          <nobr>                        |
|                |<object>                        <ol>                          |
|                |<p>                             <pre>                         |
|                |<q>                             <rt>                          |
|                |<ruby>                          <s>                           |
|                |<samp>                          <small>                       |
|                |<span>                          <strike>                      |
|                |<strong>                        <sub>                         |
|                |<sup>                           <textarea>                    |
|                |<tt>                            <u>                           |
|                |<ul>                            <var>                         |
|                |<xmp>                                                         |
+----------------+--------------------------------------------------------------+



contenteditable Possible Values

Possible Values
inherit           The setting should be determined by the element"s parent object. 
                  This is the default value.
false             The contents of the element cannot be modified.
true              The contents of the element can be modified.



"contenteditable" Syntax and Note

Note:
    
This attribute determines whether an element can be edited or not. 
    
Syntax:
    
<element contenteditable="value" > . . . </element>