liveBook · Manning

Alt-text

As explained in Build a Website with ChatGPT

Semantic alternative text is prose marked as having a different voice, mood, or role from the surrounding regular text.

Alternative text is a word or phrase whose voice, mood, or role differs from the surrounding prose. In HTML, wrap it in <i> and </i>. A browser normally displays it in italics. section 12.2.6

Mark a book title

<p>C.S. Lewis wrote <i>The Lion, the Witch, and the Wardrobe</i>.</p> The <i> element marks the title as distinct from the rest of the sentence. It can also mark publication names, technical terms, foreign phrases, or a person’s thoughts. section 12.2.6

Choose <em> when a word needs added stress; choose <strong> when it is inherently important. Alternative text in prose is also different from an image’s alt attribute, which supplies an image description. section 12.2.6 section 10.2.1

How Build a Website with ChatGPT covers it

How deep it goes
Defines the distinction and demonstrates <i> markup and italic rendering, without developing further implementation details.
Examples
Uses a marked-up book title and names publication titles, technical terms, foreign phrases, and thoughts as further cases.
What it assumes
Introduces <i> directly and explains its purpose alongside <em> and <strong>.
What you can do after
Practice/perform HTML markup that distinguishes a title or other alternative text from regular prose.
How it connects
Distinguishes the <i> element from emphasis, strong importance, and an image’s alt attribute.

Also explained in

Compare how 4 books explain alt-text →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.