5 ms·
And you would mark <i class="foreign" lang="fr">le seule mot juste</i> how? It's not emphasized, introducing a new term, or a citation, but it is traditionally
by stan_rogers 12y ago
And you would mark <i class="foreign" lang="fr">le seule mot juste</i> how? It's not emphasized, introducing a new term, or a citation, but it is traditionally typeset as italic (so simply marking it with a <span> is losing information). Much the same can be said for non-emphasized bold text. <strong> would be wrong. B and I still mean bold and italic respectively, but they are used only to cover the cases not specifically covered by other tags. Markup should be about langue, not parôle.
- dragonwriter 12y ago> it is traditionally typeset as italic (so simply marking it with a <span> is losing information). "traditionally typeset as" is not information about the content, its information about historical typographical practices. Ideally, over time, the actual semantics, rather than merely the traditional presentation, of the things where the "B" or "I" tags might be the currently least-bad standard tags would be defined in HTML. Though <span lang="fr"> is already semantically adequate for the specific case you present because the "foreign" is implicit in the span having a different lang attribute than the surrounding content, and the "i" is just an irrelevancy about traditional presentation of foreign-language content.