Thiscontentisedita"/> Thiscontentisedita">

Home >Web Front-end >HTML Tutorial >Create editable content in HTML documents

Create editable content in HTML documents

WBOY
WBOYforward
2023-09-01 08:45:241502browse

Create editable content in HTML documents

Use the contenteditable attribute to make the content of the element editable.

Example

You can try running the following code to learn how to implement the contenteditable attribute in HTML. Keep your cursor over editable content 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&#39;t edit.</p>
   </body>
</html>

The above is the detailed content of Create editable content in HTML documents. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete

Related articles

See more