#Contenteditable
- contenteditable is an HTML attribute that allows users to edit the content of an element directly on the web page.
- By default, it is set to false, i.e., the user cannot edit or modify the content.
- When the attribute is set to true, users can double-click on the element to edit/change the content.
- Example:
<p contenteditable='true'>This text can be edited by the user.</p>
(Here, the user can modify the content of the paragraph.)
#Accesskey
- accesskey attribute is used to specify a shortcut key to activate or trigger something.
- Example:
<a href='https://www.google.com' accesskey='k'>Google</a>
(Here, this link can be triggered by using the accesskey 'k' along with the binding keys.)
- The binding key for Chrome and Edge is Alt + accesskey, while for Firefox it is Alt + Shift + accesskey.
- Note: These key bindings may vary depending on the operating system and web browser being used.