Hidden features of HTML5

 There are several hidden features in HTML 5 that are not immediately apparent or widely known. Some of these features include:

  1. The dataset attribute: This attribute allows you to store custom data on HTML elements. You can use the dataset attribute to store any data that you want, and you can access it using JavaScript.

  2. The contextmenu attribute: This attribute allows you to specify a context menu for an element. A context menu is a menu that appears when you right-click on an element.

  3. The contenteditable attribute: This attribute allows you to make an element editable. You can use this attribute to create text areas that users can edit directly in the browser.

  4. The spellcheck attribute: This attribute allows you to turn spell check on or off for an element. You can use this attribute to disable spell check for specific elements on your web page.

  5. The hidden attribute: This attribute allows you to hide an element from view. You can use this attribute to hide elements that you don't want to display, but still want to keep in the HTML code.


all the time.

Comments

Popular posts from this blog

How does API works ?