Examples of Inline Semantic and Non-Semantic Elements

This page is for testing screen reader and accessibility API support for semantics and/or style reporting on inline HTML elements. MDN maintains a complete listing of inline text semantics, including tags for demarcating edits. This page contains a large portion of those tags. We apply a light gray background to all tagged text, though not to the blockquote element, which should be visually set off in browsers because they tend to indent blockquote by default. Any other styling, except the font face, is supplied by the browser.

B, Strong, I, Em

Elements that are marked bold or wrapped with an italics tag should have style but not convey semantics. On the other hand, elements marked with the strong tag should convey strong importance or urgency and elements wrapped with an em tag should convey stressed emphasis.

Blockquote, Cite, Q, S, U, Mark, Del, Ins

A blockquote is supposed to contain an extended quotation, like this q element that is followed by a cite element, all within a blockquote:

The aim of science is to seek the simplest explanations of complex facts. We are apt to fall into the error of thinking that the facts are simple because simplicity is the goal of our quest. The guiding motto in the life of every natural philosopher should be, Seek simplicity and distrust it.
The Concept of Nature – Alfred North Whitehead (1919)

You might also see the s tag, which may render with a line through it, possibly to indicate that the text is no longer relevent but which does not indicate the same thing that the del element does — that text has been removed in an edit. The counterpart of del is the ins element, which indicates insertion of new text content. Other forms of text annotation are the mark element, which indicates text highlighted for notation or reference because the text has some importance. And the u element, which indicates a non-textual annotation, such as a spelling error.

Sub, Sup, Var, Code, Kbd, Samp, and various Trademark symbols

Time, Abbr, Span