w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



html contenteditable attribute

The contenteditable attribute on the html element:

Examples

<htmlattribute="value(s)">...<⁄html>example
3.contenteditable="",  , true, false <html contenteditable=""> ... <⁄html>
<html contenteditable="true"> ... <⁄html>
<html contenteditable="false"> ... <⁄html>
<html contenteditable> ... <⁄html>

Video demonstration html contenteditable attribute

HTML5 html contenteditable attribute Tutorial

min video details
00:02 launch file content_editable.php in browser
00:06 open file content_editable.php in Notepad++
00:09 the source code of the content_editable.php file displays
00:12 contentEditable attribute's values: empty string, true, false
00:17 a) contentEditable attribute, value: empty string, applied on html starting tag
00:25 testing: <html contentEditable="">
00:26 result: the content is editable
00:50 b) contentEditable attribute, value: true, applied on html starting tag
00:51 saving the modifications in Notepad++ and refreshing the file in browser
00:55 testing: <html contentEditable="true">
00:56 result: the content is editable
01:15c) contentEditable attribute, value: false, applied on html starting tag
01:18 saving the modifications in Notepad++ and refreshing the file in browser
01:20testing: <html contentEditable="false">
00:22 result: the content is NO LONGER editable
html intro html optional html occurrences html browser display html children html syntaxhtml manifest attribute introappcache CACHE sectionappcache NETWORK sectionappcache FALLBACK sectionappcache ADVANTAGESappcache DISADVANTAGEappcache fixes: 1aappcache fixes: 1bappcache fixes: 2aappcache fixes: 2bappcache fixes: 2cappcache fixes: 3html class attributehtml contextmenu attributehtml dir attributehtml hidden attributehtml id attributehtml lang attributehtml spellcheck attributehtml style attributehtml title attributehtml translate attribute