Back to HTML

HTML Tutorial

Text Formatting

Use semantic inline tags for emphasis, code, and meaning.

Text formatting elements help describe meaning inside a line of text.

Use semantic tags like strong, em, code, mark, and small when the meaning matters.

code
<strong>Important</strong>
<em>Emphasized text</em>
<code>const topic = "HTML";</code>