Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Meta tags and page titles
📖 Scenario: You are creating a simple webpage for a local bakery. The bakery wants the page to have a clear title and meta tags that describe the page content and help search engines understand it.
🎯 Goal: Build a basic HTML page with a <title> tag and two meta tags: one for description and one for keywords.
📋 What You'll Learn
Create an HTML skeleton with <html>, <head>, and <body> tags
Add a <title> tag with the exact text 'Sweet Treats Bakery'
Add a meta tag with name 'description' and content 'Freshly baked goods every day'
Add a meta tag with name 'keywords' and content 'bakery, bread, cakes, pastries'
💡 Why This Matters
🌍 Real World
Websites use meta tags and titles to improve search engine ranking and user experience by showing meaningful page names and descriptions.
💼 Career
Web developers and content creators must know how to add meta tags and titles to make websites easy to find and understand.
Progress0 / 4 steps
1
Create the basic HTML structure
Write the basic HTML skeleton with <html>, <head>, and <body> tags exactly as shown.
No-Code
Hint
Start with the main HTML tags: <html>, inside it <head> and <body>.
2
Add the page title
Inside the <head> tag, add a <title> tag with the exact text Sweet Treats Bakery.
No-Code
Hint
The <title> tag goes inside <head> and shows the page name in the browser tab.
3
Add the description meta tag
Inside the <head> tag, add a meta tag with name="description" and content="Freshly baked goods every day".
No-Code
Hint
Meta tags provide information about the page. The description helps search engines summarize the page.
4
Add the keywords meta tag
Inside the <head> tag, add a meta tag with name="keywords" and content="bakery, bread, cakes, pastries".
No-Code
Hint
Keywords meta tag lists important words related to the page content for search engines.
Practice
(1/5)
1. What is the main purpose of a page title in a webpage?
easy
A. To name the webpage and show it in browser tabs and search results
B. To add images to the webpage
C. To create links to other websites
D. To change the background color of the page
Solution
Step 1: Understand what a page title does
The page title is the name shown on browser tabs and search results.
Step 2: Identify the correct purpose
It helps users know what the page is about by naming it clearly.
Final Answer:
To name the webpage and show it in browser tabs and search results -> Option A
Quick Check:
Page title = webpage name [OK]
Hint: Page titles name your page for browsers and search [OK]
Common Mistakes:
Thinking page titles add images
Confusing titles with page design
Believing titles create links
2. Which HTML tag is used to set the page title that appears in the browser tab?
easy
A. <meta>
B. <header>
C. <title>
D. <body>
Solution
Step 1: Identify the tag for page title
The <title> tag is used inside the <head> section to set the page title.
Step 2: Differentiate from other tags
<meta> is for metadata, <header> is for page header content, and <body> is for main content.
Final Answer:
<title> -> Option C
Quick Check:
Page title tag = <title> [OK]
Hint: Page title uses <title> tag inside <head> [OK]
Common Mistakes:
Using <meta> tag for title
Confusing <header> with title
Placing title outside <head>
3. What will happen if a webpage has no meta description tag?
medium
A. The page background will turn white
B. The page title will not appear in the browser tab
C. The webpage will not load in browsers
D. Search engines will show no description or guess content for search results
Solution
Step 1: Understand meta description role
The meta description tag gives search engines a summary to show in search results.
Step 2: Effect of missing meta description
If missing, search engines try to guess content or show no description, but the page still loads and title shows.
Final Answer:
Search engines will show no description or guess content for search results -> Option D
Quick Check:
Missing meta description = no summary shown [OK]
Hint: No meta description means search engines guess summary [OK]
Common Mistakes:
Thinking page won't load
Confusing meta description with page title
Believing background color changes
4. A webpage has this meta tag: <meta name="description" content="">. What is the problem here?
medium
A. The meta tag is missing the name attribute
B. The content attribute is empty, so no description is provided
C. The meta tag should be inside the <body> tag
D. The meta tag is missing the charset attribute
Solution
Step 1: Check the meta tag attributes
The meta tag has name="description" but content="" is empty, so no description text is given.
Step 2: Identify correct usage
The meta description needs meaningful content inside the content attribute to help search engines.
Final Answer:
The content attribute is empty, so no description is provided -> Option B
Quick Check:
Empty content means no description [OK]
Hint: Meta description needs content filled, not empty [OK]
Common Mistakes:
Thinking name attribute is missing
Placing meta tag inside <body>
Confusing charset with description
5. You want your webpage to appear clearly in search results with a good title and summary. Which combination is best to achieve this?
hard
A. Use a clear <title> tag and a meaningful tag
B. Use only a tag and no title
C. Use multiple <title> tags with different texts
D. Use tag only without a title
Solution
Step 1: Understand importance of title and meta description
The <title> tag names the page for browsers and search results. The <meta name="description"> tag provides a summary for search engines.
Step 2: Evaluate options for best SEO practice
Using a clear title and meaningful description helps the page show well in search results. Multiple titles or missing titles hurt clarity.
Final Answer:
Use a clear <title> tag and a meaningful <meta name="description"> tag -> Option A
Quick Check:
Clear title + description = better search display [OK]
Hint: Combine clear title and meta description for best search results [OK]