Inline Elements

Inline elements are used to define, highlight, and change the overall visual representation of text on the page.

Inline Elements

Inline elements are used to define, highlight, and change the overall visual representation of text on the page.

This is used to indicate strong importance

<strong>

This text has added emphasis

<em>

The b element is stylistically different from normal text, without any special importance

<b>

The u element is text with an unarticulated, though explicitly rendered, non-textual annotation

<u>

This text is deleted and This text is inserted

<del>, <ins>

This text has a strikethrough

<s>

Superscript®

<sup>

Subscript for things like H20

<sub>

This small text is for fine print.

<small>

Abbreviation: HTML

<abbr>

Keyboard input: Cmd

<kbd>

This text is a short inline quotation

<q>

This is a citation

<cite>

The dfn element indicates a definition.

<dfn>

The mark element indicates a highlight

<mark>

This is what inline code looks like.

<code>

THis is sample output from a computer program.

<samp>

The variable element such as x = y

<var>

Text in a pre element
is displayed in a fixed-width
font, and it preserves
both      spaces and
line breaks

<pre>