
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Create editable content in an HTML document
Use the contenteditable attribute, to make the content of an element editable.
Example
You can try to run the following code to learn how to implement contenteditable attribute in HTML. Keep the cursor in the editable content and you will be able to edit it.
<!DOCTYPE html> <html> <body> <p contenteditable = "true">This content is editable. Try to edit it.</p> <p>This is a normal content. It won't edit.</p> </body> </html>
- Related Articles
- Check whether the content of an element is editable or not in HTML
- How to create an HTML Document?
- Create HTML Document with Custom URL for the document in JavaScript
- How to set cursor position in content-editable element using JavaScript?
- Include meta data in an HTML document
- How to create a section in a document in HTML?
- How to create editable div using JavaScript?
- How to create a hyperlink to link another document in HTML?
- How to indicate long quotations in an HTML document?
- Including an external stylesheet file in your HTML document
- How to create a valid HTML document with no element?
- How do we include a section in an HTML document?
- How to create a valid HTML document with no and element?
- Enable an extra set of restrictions for the content in an in HTML?
- HTML content Attribute

Advertisements