Logo
HTMLCSSJavaScriptReactjsnewContactUpdates

Get started today

HTMLCSSJavaScriptReactjsnewContactUpdates

Tools

Resume BuilderQR GeneratorVS Code Editor

Connect

GitHubWhatsApp Channel
semantic tags
html5 assignment

HTML5 Attributes

By Saket Bhatnagar•August 1, 2025•Beginner to Intermediate

Table of Contents

  1. contenteditable
  2. accesskey

contenteditable

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

accesskey

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

Share this article

Last updated: September 1, 2025

Join Our Community

Login to Join

© 2025 Saket Bhatnagar. All rights reserved.