Track 02 · Lesson 16 of 17Inside the browser
- 01Events and bubbling
- 02What fires when you click or type
- 03Keyboard, input and focus events
- 04Default actions and preventDefault()
- 05Event delegation
- 06Listener options and cleanup
- 07Custom events
- 08Debounce and throttle
- 09Events in React
- 10The event loop
- 11Don't block the main thread
- 12The rendering pipeline
- 13Core Web Vitals
- 14HTTP caching
- 15Responsive design
- 16SEO basics
- 17Service workers and offline
SEO basics
Lesson 16 of 17· 6 min
Search engines read your HTML to decide what a page is about and how to show it. A clear title, a description and a readable URL decide whether people click. Edit the fields and watch the search result and the social share card change.
Write the back cover
Edit the fields; the checks update live
In a search result
Stride Shop · https://shop.example.com › running-shoes
Running Shoes for Men and Women | Stride Shop
Lightweight running shoes with free returns. Compare cushioning, fit and price across 120 styles, from road racers to trail shoes.
Shared on social media or in chat
- Title length 45: goodGood
- Description length 130: goodGood
- Readable URLGood
- Has an og:image for share previewsGood
What goes in the <head>
<title>Running Shoes for Men and Women | Stride Shop</title>
<meta name="description" content="Lightweight running shoes with free returns. Compare cushioning, fit and price across 120 styles, from road racers to trail shoes.">
<link rel="canonical" href="https://shop.example.com/running-shoes">
<meta property="og:title" content="Running Shoes for Men and Women | Stride Shop">
<meta property="og:description" content="Lightweight running shoes with free returns. Compare cushioning, fit and price across 120 styles, from road racers to trail shoes.">
<meta property="og:image" content="https://shop.example.com/og/running-shoes.jpg">What search engines read#
<title>: the blue link in search results and the browser tab. Around 50–60 characters before it gets cut.<meta name="description">: the grey text under the link, if Google decides to use it. Around 150–160 characters.- The URL: readable words like
/running-shoesbeat/p?id=8812. - Open Graph tags (
og:title,og:image): what chat apps and social networks show when someone shares the link. - The content itself: one
h1, real headings in order, and link text that says where it goes, never just "click here".
Rendering matters#
If your content only appears after JavaScript runs in the browser, search engines may index it late or poorly. That's a big part of why frameworks like Next.js render HTML on the server: the content is there in the very first response.
Check yourself