HTML 5 Attribute

#Contenteditable

  1. contenteditable is an HTML attribute that allows users to edit the content of an element directly on the web page.
  2. By default, it is set to false, i.e., the user cannot edit or modify the content.
  3. When the attribute is set to true, users can double-click on the element to edit/change the content.
  4. Example: <p contenteditable='true'>This text can be edited by the user.</p> (Here, the user can modify the content of the paragraph.)

#Accesskey

  1. accesskey attribute is used to specify a shortcut key to activate or trigger something.
  2. 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.)
  3. The binding key for Chrome and Edge is Alt + accesskey, while for Firefox it is Alt + Shift + accesskey.
  4. Note: These key bindings may vary depending on the operating system and web browser being used.