liveBook · Manning

I element

As explained in Build a Website with ChatGPT

The i element is an HTML element that marks text set apart from the surrounding prose by a different voice, mood, or semantic role.

The i element marks text that stands apart from surrounding prose because it has a different role, such as alternative text. Browsers typically render the marked text in italics. section 12.2.6 section 12.6

Mark up a title

Use the i element when a title or other alternative text needs to look different from the surrounding sentence: <p> Let's visit the land of Narnia, first introduced to us by C.S. Lewis in <i>The Lion, the Witch, and the Wardrobe</i> (1950). </p> The browser displays the title in italic type. section 12.2.6

Choose the element according to the text's role: use strong for important text, b for keywords, em for emphasis, and i for alternative text. Mark the exact words manually when precise control matters. section 12.2.6 section 12.6

How Build a Website with ChatGPT covers it

How deep it goes
Defines the element, shows its HTML syntax, demonstrates browser italic rendering, and distinguishes it from nearby text elements.
Examples
Uses a C.S. Lewis title inside a paragraph as the concrete markup example.
What it assumes
Assumes basic HTML text markup and introduces the distinction between alternative text, importance, keywords, and emphasis.
What you can do after
Apply it in HTML to mark titles or other alternative text for distinct browser presentation.
How it connects
Contrasts i with strong for importance, b for keywords, and em for emphasis.

Also explained in

Compare how 2 books explain i element →

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.