Μετάβαση στο κύριο περιεχόμενο
Το Frontend είναι ένα δωρεάν μπόνους στο CodeMentor AI — το κύριο προϊόν είναι η Python. Εγγραφείτε για να αποθηκεύσετε την πρόοδό σας και να ξεκλειδώσετε όλα τα 299 μαθήματα Frontend + 1,100+ μαθήματα Python.Εγγραφή — δωρεάν
← 📄 HTML & the platform·Ενότητα A1 · Μάθημα 8
ΕργασίαBuild a complete head + body for a landing page about 'My SaaS': doctype, html(lang=en), charset, viewport, title 'My SaaS — workflow automation', meta description 'Automate your team's repetitive workflows. Free for 30 days.', canonical 'https://mysaas.com/', favicon '/favicon.svg', theme-color '#0D1117', and full OpenGraph 5-tag set. Body has an h1 'My SaaS' and a p 'Workflow automation that works'.

Επικεφαλίδα ενότητας: μια σελίδα προορισμού Lighthouse-100

200 XP15 minFREE
Θεωρία

Putting A1 together

You've learned the doctype, viewport, lang, charset, title, description, favicon, theme-color, resource hints, and OpenGraph. Now combine them.

A "Lighthouse-100" landing page (in the SEO + Best Practices categories) checks for:

  1. `<!doctype html>` ✓
  2. `<html lang>` ✓
  3. `<meta charset>` ✓
  4. `<meta name="viewport">` ✓
  5. `<title>` — non-empty, under 60 chars ✓
  6. `<meta name="description">` — non-empty, under 160 chars ✓
  7. `<link rel="canonical">` — points to the production URL
  8. `<link rel="icon">` — favicon present
  9. OpenGraph 5-tag set ✓
  10. `lang` on the html element ✓

The canonical tag

<link rel="canonical" href="https://learnpython.academy/blog/why-fastapi" />

Tells Google "if you found this page at ?ref=twitter or /blog/why-fastapi/ (trailing slash), index it as the URL I'm pointing at." Critical for multi-URL pages.

This lesson

Build the full landing page head + minimal body. We'll grade you on all 10 Lighthouse signals at once.

Ζωντανή προεπισκόπηση
← ΠροηγούμενοΕπόμενο μάθημα →

Μια συμβουλή Python ή web την ημέρα — με email

Σύντομο, γραμμένο στο χέρι, χωρίς spam. Διαγραφή με ένα κλικ.