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…
Indicates strong importance, seriousness, or urgency. Rendered at weight 600, with synthesised bold as a fallback for single-weight fonts.
Description
The <strong> element indicates strong importance, seriousness, or urgency. It is exposed with the strong role, but by default major screen readers read it like the surrounding text, without a change in voice. VB styles it with font-weight: 600, font-synthesis: weight style, and font-optical-sizing: auto for variable fonts.
When the font has a real bold face, the browser uses it. Synthesis only applies when the font has no bold face, as with the single-weight display fonts in some themes. Without it, <strong> would look the same as the text around it. Small-caps and position synthesis stay off.
Inside <code> and <pre>, strong gets a subtle highlight background instead of relying on weight alone.
When to Use
Warnings: "Warning: This action cannot be undone"
Urgency: "Do not share your password"
Important labels: "Important:", "Note:", "Critical:"
Key facts: The most important sentence in a paragraph
For stress emphasis that changes meaning — use <em>
For headings — use <h1>–<h6>
Purely for visual styling — use CSS font-weight
strong vs b
Element
Semantics
Screen Reader
<strong>
Importance, urgency, seriousness
Read like surrounding text by default
<b>
Draw attention — no extra importance
Read like surrounding text
strong vs b usage
12345
<!-- strong: importance / urgency --><p><strong>Warning:</strong> This action is destructive.</p><!-- b: attention without importance --><p>Try the <b>Classic Burger</b> — our most popular item.</p>
Examples
Warnings and urgency
12
<p><strong>Warning:</strong> This action cannot be undone.</p><p><strong>Do not</strong> share your password with anyone.</p>
Nested Strong
Nesting <strong> increases the degree of importance:
Nested strong
123
<p><strong>This is important.<strong>This is very important.</strong></strong></p>
Bold in Code
Inside code blocks, <strong> gets a highlight background for better visibility in monospace:
Strong in code
1
<pre><code>const result = <strong>calculateTotal</strong>(items);</code></pre>
strong, b {font-weight: 600;font-synthesis: weight style; /* real bold face first; synthesise only if the font has none */font-optical-sizing: auto;}/* Nested bold + italic. Re-states values the inner element already inherits, so it has no visual effect on its own. */:where(strongem, emstrong) {font-weight: 600;font-style: italic;font-synthesis: weight style;}/* Bold in code — highlight background */:where(code, pre) :where(b, strong) {background-color: oklch(from var(--color-interactive) l c h / 0.12);border-radius: var(--radius-s);padding-inline: var(--size-2xs);}/* Forced colours: the fill is dropped, so bold in inline code uses the system highlight colours (block code does the same) */@media (forced-colors: active) {code:where(b, strong) {forced-color-adjust: none;background-color: Mark;color: MarkText; }}
Accessibility
By default, major screen readers do not announce <strong> or change voice for it; some report emphasis only when the user turns that setting on
So the words must carry the urgency themselves — for example, start with “Warning:” rather than relying on bold
Nesting <strong> increases the degree of importance semantically
Do not use strong for every bold word — overuse dilutes the signal
Related
Typography guide — how bold and italic are synthesized, combined and toggled by context