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…
Represents the title of a creative work (book, song, film, etc.).
Description
The <cite> element represents the title of a creative work: a book, paper, essay, poem, song, film, TV show, game, painting, musical, exhibition, legal case, website, or blog post. It is rendered in italic by default.
The element should contain only the title of the work, not the author's name (though the author can appear nearby).
When to Use
Book titles: The Great Gatsby
Film/TV: Inception, Breaking Bad
Music: Album titles like Abbey Road
Art: Starry Night, The Thinker
Games: The Legend of Zelda
Attribution: The work's title inside a figure.quote<figcaption> (see In quotations)
<p>My favorite book is <cite>The Great Gatsby</cite> by F. Scott Fitzgerald.</p>
With blockquote and figcaption
123456
<figureclass="quote"><blockquote><p>It was the best of times, it was the worst of times.</p></blockquote><figcaption>Charles Dickens, <cite>A Tale of Two Cities</cite></figcaption></figure>
Do not type a dash before the attribution: figure.quote adds one with CSS and hides it from screen readers.
In quotations
Preferred pattern:<figure class="quote"> with the <blockquote> and a <figcaption>. The attribution stays outside the quotation, as the HTML spec requires, and the figcaption gets a silent leading dash.
Legacy pattern: a <cite> or <footer> that is a direct child of <blockquote> is styled as a block attribution line with the same silent dash. A <cite> elsewhere inside the quoted text stays an inline title.
Element vs attribute: the <cite> element is a visible work title. The citeattribute on <blockquote>, <q>, <ins> and <del> is a source URL that browsers do not display.
cite element and cite attribute
123456
<figureclass="quote"><blockquotecite="https://www.gutenberg.org/ebooks/98"><p>It was the best of times, it was the worst of times.</p></blockquote><figcaption>Charles Dickens, <cite>A Tale of Two Cities</cite></figcaption></figure>
Variants
data-variant="quoted"
Sets the title in quotation marks instead of italics (font-style: normal plus open-quote/close-quote). House styles often reserve quotes for short works — articles, songs, episodes — and italics for long ones. The marks follow the same :lang() quote table as <q>, so a German page gets „…“.
Quoted cite variant
12
<p>Tonight's episode is <citedata-variant="quoted">The One with the Embryos</cite>.</p><p>The article <citedata-variant="quoted">Why CSS is Awesome</cite> changed my perspective.</p>
Chinese, Japanese and Korean
CJK scripts have no true italics, and browsers fake them by slanting the glyphs. Under :lang(zh), :lang(ja) and :lang(ko), <cite> is upright with a muted wavy underline instead. The quoted variant keeps its quotation marks and drops the underline.