Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

samp

Represents sample or quoted output from a computer program. Rendered in monospace font.

Description

The <samp> element represents sample output from a computer program. VB styles it in var(--font-mono) at 0.9em. It is part of VB's code-family elements alongside <code>, <kbd>, and <var>. Browser translation tools will translate it unless you add the HTML translate="no" attribute (see Internationalization).

When to Use

  • Command output: Results from terminal commands
  • Error messages: System error text
  • Status messages: Build output, test results
  • API responses: Showing what a system returns

When NOT to Use

  • For code the user writes — use <code>
  • For keyboard input — use <kbd>
  • For variables — use <var>

Examples

Mixed with kbd

Pair <kbd> (user input) with <samp> (system response) to document command-line workflows:

CSS Reference

Unlike <code>, <samp> has no background or padding — output text should feel like raw system text, not highlighted code.

Long unbroken output such as file paths, URLs or hashes wraps inside narrow containers instead of overflowing. Inside a <pre> block the output keeps its exact line breaks.

On a right-to-left page, inline <samp> and <code> are isolated from the surrounding text and take their direction from their own content. Without this, output such as File not found: config.json. could have its edge punctuation moved to the wrong end. Block output in <pre> is always left-to-right unless the <pre> has its own dir.

Accessibility

  • Screen readers read <samp> as regular text — the monospace styling is visual only
  • Provide context: "The system responded with..." or "Error:" before the output

Related

  • <code> — For source code the user writes
  • <kbd> — For keyboard input from the user
  • <var> — For variables in code or math
  • Internationalization — Translation protection for code-family elements
↑