Vai al contenuto principale
← 📄 HTML & the platform·Modulo A8 · Lezione 6
CompitoBuild a blog post. <head>: title 'Why FastAPI in 2026 | CodeMentor', description, canonical, OG block (og:title, og:image, og:url, og:type='article'), JSON-LD Article (headline, author Anna (Person), datePublished '2026-05-20', image, publisher CodeMentor with logo). <body><main><article>: <h1>Why FastAPI in 2026</h1>, <address>By <a rel='author'>Anna</a></address>, <time datetime='2026-05-20'>May 20, 2026</time>, <p>opener paragraph</p>, <h2>The argument</h2>, <p>argument paragraph</p>, <h2>Conclusion</h2>, <p>closing paragraph</p>.

Capstone 6: post del blog con markup completo dell'articolo

250 XP18 min
Teoria

What we're building

A complete blog post page. The kind of thing that appears in the Google "rich results" SERP with thumbnail + author + date.

Required:

  • <article> wrapper.
  • Title in <h1>.
  • Author in <address> linked to author profile.
  • Published date in <time datetime>.
  • Body with proper semantic headings (h2, h3 — no skips).
  • JSON-LD Article block matching the visible content.
  • Full SEO+OG block (canonical, og:image, etc).

If you've shipped a Substack post, you know what 80% of this looks like. The 20% no one does is the matching JSON-LD.

🔒

Iscriviti per iniziare a programmare

La teoria è aperta a tutti. Editor, anteprima e check si sbloccano con una prova gratuita di 7 giorni — carta richiesta, annullabile in qualsiasi momento.

Iscriviti — prova gratuita →

Le prime 10 lezioni di ogni percorso sono gratuite. Nessuna carta richiesta.

← PrecedenteProssima lezione →

Ricevi un consiglio Python o web al giorno — via email

Breve, scritto a mano, niente spam. Disiscriviti in un clic.