Saltar para o conteúdo principal
O Frontend é um bônus gratuito no CodeMentor AI — o produto principal é Python. Cadastre-se para salvar seu progresso e desbloquear todas as 299 lições de Frontend + 1,100+ lições de Python.Cadastre-se — grátis
← 📄 HTML & the platform·Módulo A1 · Lição 3
TarefaAdd a title 'Anna's blog — notes on building software' and a meta description 'Short essays on TypeScript, Postgres and shipping side-projects. New post every Friday.' to the page head.

<title> e meta description: o que o Google realmente mostra

75 XP8 minFREE
Teoria

Two tags that decide whether anyone clicks

Google's search result for your page has two parts:

  1. The blue link text — comes from your <title> tag. Google may rewrite it (especially if you stuff keywords), but most of the time it shows what you wrote.
  2. The grey description below — comes from your <meta name="description"> tag. Same caveat: Google often rewrites it or picks a snippet from your body to match the query, so treat the description as a good default, not a guarantee.
<title>Learn HTML — interactive tutorials | CodeMentor</title>
<meta name="description" content="85 hands-on HTML lessons with an AI mentor. Build modern web pages in your browser, no setup. First 10 lessons free." />

Rules of thumb (not hard limits)

  • Title: 50-60 chars. Beyond that, Google truncates with an ellipsis. Put the most important words first.
  • Description: 150-160 chars. Same truncation rule. Lead with the value, not the brand.
  • Be specific. "Learn coding" loses. "Build a working REST API in 7 days, in Python" wins.
  • Don't keyword-stuff. Google detects it and re-writes your title to something generic. Lost battle.

Per-page, not site-wide

A common mistake: putting the same <title>Welcome to MyApp</title> on every page. Each route should have its own title that matches the page's actual content. For a Next.js / FastAPI app, generate it per-route.

Pré-visualização ao vivo
← AnteriorPróxima lição →

Recebe uma dica de Python ou web por dia — por email

Curto, escrito à mão, sem spam. Cancela a subscrição num clique.