Μετάβαση στο κύριο περιεχόμενο
Το Frontend είναι ένα δωρεάν μπόνους στο CodeMentor AI — το κύριο προϊόν είναι η Python. Εγγραφείτε για να αποθηκεύσετε την πρόοδό σας και να ξεκλειδώσετε όλα τα 299 μαθήματα Frontend + 1,100+ μαθήματα Python.Εγγραφή — δωρεάν
← 📄 HTML & the platform·Ενότητα A1 · Μάθημα 5
ΕργασίαAdd three head elements: link rel='icon' href='/favicon.svg', link rel='apple-touch-icon' href='/apple-touch-icon.png', and meta name='theme-color' content='#0D1117'.

Favicon και χρώμα θέματος (λεπτομέρειες της λωρίδας καρτέλας)

75 XP6 minFREE
Θεωρία

Three small tags that make a site feel finished

<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="theme-color" content="#0D1117" />

What each does

  1. `<link rel="icon">` — the tiny icon shown in browser tabs, bookmarks, and history. SVG works in modern browsers and scales perfectly to any retina display. Fall back to .ico for legacy browsers if you care about IE11 / very old Android.
  2. `<link rel="apple-touch-icon">` — when a user adds your site to their iPhone home screen, this is the icon they see. iOS ignores favicons and reads only this. Must be a 180×180 PNG.
  3. `<meta name="theme-color">` — colors the address bar on Chrome Android (matches your hero gradient). On iOS Safari it colors the status bar in standalone mode. Subtle but moves the needle on "this feels native."

Dark mode aware

You can target by color scheme:

<meta name="theme-color" content="#FFFFFF" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#0D1117" media="(prefers-color-scheme: dark)" />

Two tags, two values. Chrome picks whichever matches the OS theme.

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

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

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