The page title and metadata
What we will go through
- How the <title> tag shows in tabs and Google
- The meta description
- The viewport meta tag for mobile
- Favicons and Open Graph tags for social shares
Short answer
The <title> tag names your page in the browser tab, bookmarks, and Google results. Meta tags are void elements in the head that give extra details, like a page summary or how to fit phone screens. Open Graph tags control how your link looks when shared on Facebook or Messenger.
The <title> tag
<title>Pili Tart Delivery in Legazpi | Mayon Bakeshop</title>
The title appears in the browser tab, in bookmarks, and usually as the blue headline in Google search results. Each page needs its own unique title. You will write SEO titles properly in Lesson 9.1.
Meta description and viewport
<meta name="description" content="Order fresh pili tarts in Legazpi City. Same day delivery, ₱25 per piece.">
<meta name="viewport" content="width=device-width, initial-scale=1">
- The meta description is a short summary. Google may show it under your title.
- The viewport meta tag tells phones to use the device width. Without it, mobile browsers shrink a desktop-size page and text becomes tiny.
Favicon
<link rel="icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
A favicon is the small icon in the browser tab. It helps people find your tab and builds brand recognition. Google also shows it next to mobile results.
Open Graph tags for sharing
Most Filipino customers share links on Facebook and Messenger. Open Graph meta tags control the preview card:
<meta property="og:title" content="Fresh Pili Tarts in Legazpi">
<meta property="og:description" content="Same day delivery around Albay.">
<meta property="og:image" content="https://example.com/share.jpg">
<meta property="og:url" content="https://example.com/">
Use a share image of 1200 by 630 pixels. Without these tags, Facebook guesses, and it often picks the wrong image.
Try it: write a head
Fill in a title and a meta description for a carinderia in your town. The preview shows only the body, so check your title in the code.
Live preview
Quick quiz
Common mistakes
- Missing viewport tag. Your page will look zoomed out on phones.
- Copying one title to every page. Duplicate titles confuse visitors and Google.
- Tiny share images. Small og:image files look blurry or get skipped.
Your action
Tick each item when you can do it. Your progress saves on this device.
Key terms
- <title>
- The page name shown in tabs and search results.
- Meta description
- A short page summary in a meta tag.
- Viewport meta tag
- Tells mobile browsers how to size the page.
- Favicon
- The small icon shown in the browser tab.
- Open Graph
- Meta tags that control social media share previews.
Questions beginners ask
Does the meta description help rankings?
Not directly, but a clear one can earn more clicks.
Where do I test Facebook previews?
Use the Facebook Sharing Debugger at developers.facebook.com/tools/debug.
Is a favicon required?
No, but browsers request one anyway. Adding it avoids a 404 error and looks more professional.
Related lessons
Need a website built or fixed while you practice? The team at Remar Digital can help.