The <mark> Element

<mark> indicates text that has been marked or highlighted for reference. Unlike a yellow background applied with CSS, <mark> carries semantic meaning — "this text is relevant to the user's current query."

Search Results

Why is React the most popular framework?

React dominates new project adoption with 46.4% market share, followed by Vue at 25.1%. Its component model and virtual DOM...

Getting started with React — a beginner's guide

Learn JSX, hooks, and the component lifecycle. By the end you'll have built a full React app...

React vs Vue vs Svelte — 2024 benchmarks

Server-side rendering performance shows React at 87ms per request, compared to Vue at 72ms...

Document Annotation

The proposal recommends migrating from AWS Lambda to Cloudflare Workers to reduce cold-start latency. This change affects ~37 functions.

Note: Functions using AWS-specific SDK calls will require a rewrite.

<mark> vs CSS background

WhenUse
Text relevant to current activity (search, filter)<mark>
Highlighted text in a quote or document review<mark>
Purely decorative background stylingCSS background on <span>

Screen readers announce <mark> content differently, and search engines can use it as a relevance signal. If the highlighting is decorative and has no semantic purpose, <span> + CSS is more appropriate.