<small>, <mark> & <s> Tags in HTML

Quick facts

CategoryFlow content, phrasing content, palpable content
Content modelPhrasing content
Tag omissionNeither the start nor the end tag can be omitted
Permitted parentsAny element that accepts phrasing content
DOM interfaceHTMLElement (all three)

Syntax

<small>© 2026 Example Inc.</small> <p>Results for <mark>editor</mark></p> <p><s>$49</s> $29</p>

Live example

Edit the code below and watch the preview update instantly.

index.html
Preview

Attributes

AttributeDescription
—All three accept only the global attributes.

Common examples

Fine print under a price

<small> is for side comments such as terms, disclaimers and copyright.

<p>$9.99 per month <small>Cancel anytime. Taxes may apply.</small></p> <footer><small>© 2026 Example Inc.</small></footer>

Highlighting search matches

<mark> highlights text that is relevant right now, such as matches for the visitor’s search.

<p>Results for "editor": a free online HTML <mark>editor</mark> with live preview.</p>

An old price

<s> shows information that is no longer accurate, like a previous price.

<p><s>$49</s> <strong>$29</strong> — sale ends Sunday</p>

Styling the highlight

Change mark’s default yellow background to match your design.

<style> mark { background: #ffe58a; color: inherit; padding: 0 0.15em; border-radius: 3px; } </style>

<mark> vs <strong>

<strong> marks text that is important in itself — a warning, a deadline. <mark> marks text that is relevant in the current context, such as words that match a search or a line a teacher wants students to notice.

The same sentence could be marked in one situation and plain in another, while strong text is always important. Think of mark as a highlighter pen and strong as writing in capitals.

<mark><strong>
MeaningRelevant right nowImportant
Default styleYellow highlightBold
ExampleSearch matchesWarnings

Common mistakes to avoid

  • Using small to shrink headings or body text. Use CSS font-size; small means “fine print”.
  • Hiding important terms in small print. Key conditions such as fees should be easy to read.
  • Using mark for decoration. If nothing is being highlighted for a reason, use CSS.
  • Using s for edits to a document. Tracked changes belong in <del> and <ins>.

Accessibility & SEO tips

  • Most screen readers don’t announce mark or s, so add words like “was $49, now $29” when the meaning matters.
  • Keep fine print at a readable size — tiny text fails accessibility checks and frustrates mobile users.
  • Check that mark’s highlight color keeps enough contrast with the text, especially in dark designs.
  • Use mark sparingly — if a page is full of highlights, none of them stand out and the text becomes harder to read.

Browser support

Supported in every browser, including Chrome, Edge, Firefox, Safari and their mobile versions — it has been part of HTML since the very first versions. was added in HTML5 and works in all modern browsers.

Related tags

Frequently asked questions

What is the difference between <s> and <del>?
<s> marks content that is no longer accurate or relevant, like an old price. <del> marks text that was removed as an edit to a document, often paired with <ins> for the replacement.
Do screen readers announce <mark>?
Most screen readers do not announce <mark> by default. If the highlight carries important meaning, also say it in words, for example "matching results are highlighted".
Should I use <small> just to make text smaller?
No. <small> means fine print or a side comment. If you only want smaller text for design, use the CSS font-size property.
How do I highlight text in HTML?
Wrap it in <mark>, for example <mark>important words</mark>. Browsers show it with a yellow background, which you can change with CSS.
How do I show a crossed-out old price?
Use <s>$49</s> followed by the new price. Adding visually hidden text such as "was" helps screen reader users.
Is <small> deprecated?
No. It was redefined in HTML5 to mean side comments and fine print, and it's fully valid.
Can I use <mark> to highlight search results with JavaScript?
Yes. Wrap each match in a <mark> element as the visitor types, and remove the marks when the search is cleared. Use textContent for the matched text to stay safe from injection.
What is the difference between <small> and font-size?
<small> means "this is a side comment or fine print" and makes it smaller by default. CSS font-size only changes the size without any meaning.
Is <s> the same as the old <strike> tag?
Mostly. <strike> is obsolete. Use <s> for information that is no longer accurate and <del> for content removed in an edit.