FIND YOUR NEXT FEW LINES

Results for “heading”

Small, practical examples. Search by task or narrow things down below.

9 snippets foundClear filters
CSSPositioning & stacking

Keep a section heading at a scrolling panel’s top

CSS: Sticky positioning sticks within its scroll container after reaching the specified inset.

CSS✓ Tested
CSSVisual treatment & accessibility

Leave room above a scrolled-to heading

CSS: Scroll-margin offsets scrollIntoView placement so a heading is not flush against the viewport edge.

CSS✓ Tested
HTMLAccessible structure

Move focus to a heading without adding a tab stop

HTML: A negative tabindex permits programmatic focus while keeping the heading out of ordinary sequential tab navigation.

HTML✓ Tested
HTMLTables & list numbering

Separate table headings data and totals

HTML: Thead, tbody, and tfoot group rows according to their purpose.

HTML✓ Tested
HTMLDocument structure

Structure a document with headings

Use a single page heading and a second-level section heading in HTML.

HTML✓ Tested
HTMLGetting Started

Use headings to show document structure

HTML: Learn how to use headings to show document structure in a complete browser example.

HTML✓ Tested
HTMLMetadata & document links

Give a document a descriptive browser title

HTML: The title element supplies the browser document title independently of the visible heading.

HTML✓ Tested
HTMLAccessible structure

Give a section an accessible region name

HTML: A section becomes a named landmark when its heading is referenced with aria-labelledby.

HTML✓ Tested
HTMLTables & list numbering

Span one header across several columns

HTML: Colspan lets a heading cover a defined number of columns in the table grid.

HTML✓ Tested