note - speced/respec GitHub Wiki
Marks content as a note. Generates a labelled "Note" box with the content.
<div class="note">
<p>Authors must not rely on the computed value being identical
across different implementations.</p>
</div><p class="note" title="Always use native semantics">
If you are using <code>role="button"</code> on a div,
you are probably doing it wrong.
</p>| Class | Renders as |
|---|---|
.note |
Note box |
.note with title attribute |
"Note: [title]" header |
.warning |
Warning box (see .warning) |
- Works on block elements:
<div>,<p>,<aside>,<section> - Also works inline:
<span class="note">…</span>renders as a compact inline note - The
titleattribute is interpreted as HTML — seetitleattributes - Numbered notes get a counter in the heading (e.g. "Note 1")
- For editor-facing notes not meant for the published spec, use
ednoteinstead