property

Bookmark level — CSS reference

Experimental draft: The generated-content draft requests a document bookmark at a positive hierarchy level, or none to omit it. This is aimed at document formats supporting outlines, not visual heading size. Semantic headings and a visible table of contents remain usable on the web.

Formal Syntax & Structure

css syntaxcss
bookmark-level: 1;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>bookmark-level</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{bookmark-level:1}</style><body><nav aria-label="Contents"><a href="#a">Overview</a></nav><h1 id="a">Overview</h1><h2>Details</h2></body></html>
CSS Reference