Saturday, May 21, 2011

contenteditable in HTML5

Create a simple HTML file, include a paragraph tag <p>., with attribute of contenteditable.

Open it with a browser support HTML5.

The content of the paragraph become editable, you can change the content. And save the page as a new HTML file. It can be noticed that the content will updated with your input.

<!DOCTYPE html>  
<html lang="en">
<head>
<meta charset="utf-8">
<title>i can code! for Web</title>
</head>
<body>
<h1>i can code! for Web</h1>
You can edit the text below.
Save as another HTML file, the content will updated with your input.
<p contenteditable=true>
http://icancode-4-web.blogspot.com/
</p>
</body>
</html>




contenteditable in HTML5

1 comment:

  1. Good start but have to do a lot of work
    http://www.tekdig.net

    ReplyDelete