property
Bookmark label — CSS reference
Experimental draft: Proposes deriving document-outline labels from generated-content values, with heading text as the default. The bookmark level must enable the bookmark first. Visible navigation text is a separate web alternative and can be authored directly.
Formal Syntax & Structure
css syntaxcss
bookmark-label: "Overview";Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>bookmark-label</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{bookmark-label:"Overview"}</style><body><nav aria-label="Contents"><a href="#a">Overview</a></nav><h1 id="a">Project overview</h1></body></html>