data-type

<custom-ident> — CSS reference

A custom identifier is an author-defined name in a grammar that permits it. It is case-sensitive and excludes CSS-wide keywords and default, plus names reserved by the receiving property. Do not quote it unless the property separately accepts strings.

Formal Syntax & Structure

css syntaxcss
<custom-ident>   /* e.g. slide-in */

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>@keyframes reveal {from,to {opacity:.4}} #a {animation-name:reveal;animation-duration:1s;animation-play-state:paused} #b {animation-name:Reveal}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>
CSS Reference