data-type
<dashed-ident> — CSS reference
A dashed identifier is an identifier beginning with two hyphens, with more characters after them. It is used for author-defined names such as custom properties and certain newer CSS naming mechanisms. The specific grammar may add restrictions. Custom property names are case-sensitive.
Formal Syntax & Structure
css syntaxcss
<dashed-ident> /* e.g. --panel */Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {--accent:#006050;--Accent:#184168;color:var(--accent)} #b {--Accent:#184168;color:var(--Accent)}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>