×
The data-* attribute gives us the ability to embed custom data attributes on all HTML elements. The stored (custom) data can then be used in the page's JavaScript to create a more engaging user experience (without any Ajax calls or server-side database queries).
People also ask
Nov 29, 2023 · data-* attributes allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, ...
Sep 7, 2023 · The data-* global attributes form a class of attributes called custom data attributes, that allow proprietary information to be exchanged ...
Mar 8, 2024 · The HTML data-* attribute allows storing custom data for elements, enhancing interactivity in web applications through JavaScript without server ...
Feb 17, 2020 · Data attributes are often referred to as data-* attributes, as they are always formatted like that. The word data , then a dash - , then other ...
Sep 6, 2022 · Data attributes allow you to add valid, user-defined attributes to arbitrary elements in your HTML with automatic reflection in the dataset ...
The data, such as instructions, constants, and areas, that you define in a source module, can be described by its: Type, which distinguishes a property of a ...
Apr 15, 2023 · data-* attributes allow developers to add custom data to elements that can be accessed and manipulated using JavaScript or CSS. They provide a ...