About 557,000 results
Open links in new tab
  1. Use data attributes - HTML | MDN - MDN Web Docs

    Nov 6, 2025 · Any attribute on any element whose attribute name starts with data- is a data attribute. Say you have some articles and you want to store some extra information that …

  2. HTML data-* Attribute - W3Schools

    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 …

  3. HTML data-* Attributes - GeeksforGeeks

    Jul 11, 2025 · The HTML data-* attributes allow you to store custom data directly in HTML elements, making passing information between HTML and JavaScript easier. This method …

  4. HTML Data Attributes Guide - CSS-Tricks

    Feb 17, 2020 · Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript.

  5. HTML5 data-* Attributes

    Sometimes you need to attach extra data to an element — like an ID, type, status, or anything custom — without affecting its appearance or meaning. That’s exactly what data-* attributes …

  6. Custom Data: Data-* Attributes in HTML - DEV Community

    Aug 16, 2025 · Data-* attributes are custom attributes on HTML elements that start with the prefix data- followed by a name you define. These allow developers to embed private, custom data …

  7. Understanding `data-*` Attributes in HTML, CSS, and Their …

    Oct 16, 2025 · data-* attributes in HTML, CSS, and JavaScript are a powerful tool for web developers. They provide a flexible way to store custom data in HTML elements, which can be …

  8. DataTables example - HTML5 data-* attributes - cell data

    One method in which DataTables can obtain this orthogonal data for its different actions is through custom HTML5 data attributes. DataTables will automatically detect four different …

  9. HTML Data Attribute: Syntax, Usage, and Examples

    By using .dataset, JavaScript reads or modifies data attributes within an HTML element. Data attributes store small amounts of relevant data without requiring a database, ensuring efficient …

  10. HTML data-* global attribute - MDN

    Nov 3, 2025 · The data-* global attributes form a class of attributes called custom data attributes, that allow proprietary information to be exchanged between the HTML and its DOM …