{"id":780,"date":"2010-09-17T10:12:53","date_gmt":"2010-09-17T15:12:53","guid":{"rendered":"http:\/\/josh.ev9.org\/weblog\/?p=780"},"modified":"2022-02-18T15:52:08","modified_gmt":"2022-02-18T20:52:08","slug":"contenteditable","status":"publish","type":"post","link":"http:\/\/josh.ev9.org\/weblog\/archives\/780","title":{"rendered":"The contenteditable HTML Attribute"},"content":{"rendered":"<p>Who needs form fields? Now that we have the <a href=\"http:\/\/www.w3.org\/TR\/html5\/editing.html#contenteditable\">contenteditable<\/a> attribute, any element can be editable. Here&#8217;s all you have to do to make a field editable:<\/p>\n<p><code>&lt;div contenteditable&gt;This is editable content. Go ahead, change it.&lt;\/div&gt;<\/code><\/p>\n<p>Which acts just like this area (click the text to edit it):<\/p>\n<p><strong><\/strong><\/p>\n<p><strong><\/p>\n<div contenteditable=\"\">This is editable content. Go ahead, change it.<\/div>\n<p><\/strong><strong><\/strong><strong><\/strong><\/p>\n<p>Pretty cool, right? Remember though, you&#8217;re not in a form, so you&#8217;ll need to submit changes with ajax, or save them locally in the browser (<a href=\"http:\/\/people.w3.org\/mike\/localstorage.html\">Local Storage<\/a>, anyone?). Either way, this is pretty nice.<\/p>\n<p>I also heard a rumor that in HTML6 they&#8217;ll include the <em>contentedible<\/em> attribute, so you&#8217;ll be able to eat elements with ease.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here&#8217;s all you have to do to make a field editable: &lt;div contenteditable&gt;This is editable content. Go ahead, change it.&lt;\/div&gt; Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[23,21,12,39],"tags":[],"class_list":["post-780","post","type-post","status-publish","format-standard","hentry","category-free-design-idea","category-professional","category-technology","category-web-development"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here&#039;s all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"jevnin\"\/>\n\t<link rel=\"canonical\" href=\"http:\/\/josh.ev9.org\/weblog\/archives\/780\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Josh Evnin \u2013 Startups, Product Design, and Building the Future\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"The contenteditable HTML Attribute \u2013 Josh Evnin\" \/>\n\t\t<meta property=\"og:description\" content=\"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here&#039;s all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/josh.ev9.org\/weblog\/archives\/780\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-09-17T15:12:53+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-02-18T20:52:08+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"The contenteditable HTML Attribute \u2013 Josh Evnin\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here&#039;s all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#blogposting\",\"name\":\"The contenteditable HTML Attribute \\u2013 Josh Evnin\",\"headline\":\"The contenteditable HTML Attribute\",\"author\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/author\\\/jevnin#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/915ce0ad84a5b27b2117ac5655b49255c7133d9cb5610423bb6f73ead01e1403?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"jevnin\"},\"datePublished\":\"2010-09-17T10:12:53-05:00\",\"dateModified\":\"2022-02-18T15:52:08-05:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#webpage\"},\"articleSection\":\"Free design idea, professional, technology, web development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/category\\\/technology#listItem\",\"name\":\"technology\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/category\\\/technology#listItem\",\"position\":2,\"name\":\"technology\",\"item\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/category\\\/technology\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#listItem\",\"name\":\"The contenteditable HTML Attribute\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#listItem\",\"position\":3,\"name\":\"The contenteditable HTML Attribute\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/category\\\/technology#listItem\",\"name\":\"technology\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/#person\",\"name\":\"jevnin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/915ce0ad84a5b27b2117ac5655b49255c7133d9cb5610423bb6f73ead01e1403?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"jevnin\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/author\\\/jevnin#author\",\"url\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/author\\\/jevnin\",\"name\":\"jevnin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/915ce0ad84a5b27b2117ac5655b49255c7133d9cb5610423bb6f73ead01e1403?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"jevnin\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#webpage\",\"url\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780\",\"name\":\"The contenteditable HTML Attribute \\u2013 Josh Evnin\",\"description\":\"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here's all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/780#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/author\\\/jevnin#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/archives\\\/author\\\/jevnin#author\"},\"datePublished\":\"2010-09-17T10:12:53-05:00\",\"dateModified\":\"2022-02-18T15:52:08-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/#website\",\"url\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/\",\"name\":\"Josh Evnin\",\"description\":\"Startups, Product Design, and Building the Future\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"http:\\\/\\\/josh.ev9.org\\\/weblog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"The contenteditable HTML Attribute \u2013 Josh Evnin","description":"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here's all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change","canonical_url":"http:\/\/josh.ev9.org\/weblog\/archives\/780","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#blogposting","name":"The contenteditable HTML Attribute \u2013 Josh Evnin","headline":"The contenteditable HTML Attribute","author":{"@id":"http:\/\/josh.ev9.org\/weblog\/archives\/author\/jevnin#author"},"publisher":{"@id":"http:\/\/josh.ev9.org\/weblog\/#person"},"image":{"@type":"ImageObject","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/915ce0ad84a5b27b2117ac5655b49255c7133d9cb5610423bb6f73ead01e1403?s=96&d=mm&r=g","width":96,"height":96,"caption":"jevnin"},"datePublished":"2010-09-17T10:12:53-05:00","dateModified":"2022-02-18T15:52:08-05:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#webpage"},"isPartOf":{"@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#webpage"},"articleSection":"Free design idea, professional, technology, web development"},{"@type":"BreadcrumbList","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog#listItem","position":1,"name":"Home","item":"http:\/\/josh.ev9.org\/weblog","nextItem":{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/category\/technology#listItem","name":"technology"}},{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/category\/technology#listItem","position":2,"name":"technology","item":"http:\/\/josh.ev9.org\/weblog\/archives\/category\/technology","nextItem":{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#listItem","name":"The contenteditable HTML Attribute"},"previousItem":{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#listItem","position":3,"name":"The contenteditable HTML Attribute","previousItem":{"@type":"ListItem","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/category\/technology#listItem","name":"technology"}}]},{"@type":"Person","@id":"http:\/\/josh.ev9.org\/weblog\/#person","name":"jevnin","image":{"@type":"ImageObject","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/915ce0ad84a5b27b2117ac5655b49255c7133d9cb5610423bb6f73ead01e1403?s=96&d=mm&r=g","width":96,"height":96,"caption":"jevnin"}},{"@type":"Person","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/author\/jevnin#author","url":"http:\/\/josh.ev9.org\/weblog\/archives\/author\/jevnin","name":"jevnin","image":{"@type":"ImageObject","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/915ce0ad84a5b27b2117ac5655b49255c7133d9cb5610423bb6f73ead01e1403?s=96&d=mm&r=g","width":96,"height":96,"caption":"jevnin"}},{"@type":"WebPage","@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#webpage","url":"http:\/\/josh.ev9.org\/weblog\/archives\/780","name":"The contenteditable HTML Attribute \u2013 Josh Evnin","description":"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here's all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change","inLanguage":"en-US","isPartOf":{"@id":"http:\/\/josh.ev9.org\/weblog\/#website"},"breadcrumb":{"@id":"http:\/\/josh.ev9.org\/weblog\/archives\/780#breadcrumblist"},"author":{"@id":"http:\/\/josh.ev9.org\/weblog\/archives\/author\/jevnin#author"},"creator":{"@id":"http:\/\/josh.ev9.org\/weblog\/archives\/author\/jevnin#author"},"datePublished":"2010-09-17T10:12:53-05:00","dateModified":"2022-02-18T15:52:08-05:00"},{"@type":"WebSite","@id":"http:\/\/josh.ev9.org\/weblog\/#website","url":"http:\/\/josh.ev9.org\/weblog\/","name":"Josh Evnin","description":"Startups, Product Design, and Building the Future","inLanguage":"en-US","publisher":{"@id":"http:\/\/josh.ev9.org\/weblog\/#person"}}]},"og:locale":"en_US","og:site_name":"Josh Evnin \u2013 Startups, Product Design, and Building the Future","og:type":"article","og:title":"The contenteditable HTML Attribute \u2013 Josh Evnin","og:description":"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here's all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change","og:url":"http:\/\/josh.ev9.org\/weblog\/archives\/780","article:published_time":"2010-09-17T15:12:53+00:00","article:modified_time":"2022-02-18T20:52:08+00:00","twitter:card":"summary","twitter:title":"The contenteditable HTML Attribute \u2013 Josh Evnin","twitter:description":"Who needs form fields? Now that we have the contenteditable attribute, any element can be editable. Here's all you have to do to make a field editable: This is editable content. Go ahead, change it. Which acts just like this area (click the text to edit it): This is editable content. Go ahead, change"},"aioseo_meta_data":{"post_id":"780","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"#aioseo-article-640701c234529","slug":"article","graphName":"Article","label":"Article","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-02-18 20:00:25","updated":"2025-06-04 17:19:03","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/josh.ev9.org\/weblog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"http:\/\/josh.ev9.org\/weblog\/archives\/category\/technology\" title=\"technology\">technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tThe contenteditable HTML Attribute\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"http:\/\/josh.ev9.org\/weblog"},{"label":"technology","link":"http:\/\/josh.ev9.org\/weblog\/archives\/category\/technology"},{"label":"The contenteditable HTML Attribute","link":"http:\/\/josh.ev9.org\/weblog\/archives\/780"}],"_links":{"self":[{"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/posts\/780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/comments?post=780"}],"version-history":[{"count":9,"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/posts\/780\/revisions"}],"predecessor-version":[{"id":891,"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/posts\/780\/revisions\/891"}],"wp:attachment":[{"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/media?parent=780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/categories?post=780"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/josh.ev9.org\/weblog\/wp-json\/wp\/v2\/tags?post=780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}