English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML contenteditable Eigenschaft

Die globale Eigenschaft contenteditable ist eine Enum-Eigenschaft, die angibt, ob ein Element vom Benutzer editiert werden kann. Wenn ja, ändert der Browser die Komponenten des Elements, um die Bearbeitung zu ermöglichen.

HTML-Globalattribut

Online-Beispiel

Ein editierbarer Abschnitt:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML contenteditable Eigenschaft verwenden (Grundlagen-Tutorial-Web3codebox.com)<//title>
</head>
<body>
<p contenteditable="true">I am an editable text.</p>
</body>
</html>
Test see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the contenteditable attribute

Definition and Usage

The contenteditable attribute specifies whether the element content is editable.

Note: If the contenteditable attribute is not set on an element, it will inherit it from its parent element.

HTML 4.01 with HTML5differences

The contenteditable attribute is a new addition to HTML.

Syntax

<element contenteditable="true|false">

Attribute Value

ValueDescription
trueThe specified element is editable
falseThe specified element is not editable
HTML-Globalattribut