Published by Patrick Mutisya · 8 days ago
Metatags are placed inside the <head> section of an HTML document.
They do not affect the visible content of the page, but they provide information to browsers, search engines and other services.
<meta charset="UTF-8"><meta name="keywords" content="ICT, website authoring, metatags, HTML">
<meta name="author" content="John Doe">
<meta name="description" content="A concise description of the web page for search engines.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
| Metatag | Attribute(s) | Purpose | Typical \cdot alue |
|---|---|---|---|
| Charset | charset | Defines the character encoding used by the document. | UTF-8 |
| Keywords | name="keywords" content | Provides search‑engine keywords describing the page. | e.g., "ICT, web design, metatags" |
| Author | name="author" content | Identifies the creator of the page. | e.g., "Jane Smith" |
| Description | name="description" content | Gives a brief summary for search‑engine snippets. | e.g., "An introduction to metatags for IGCSE ICT." |
| Viewport | name="viewport" content | Controls layout on mobile devices; essential for responsive design. | width=device-width, initial-scale=1.0 |
Without a viewport definition, mobile browsers render pages at a virtual width (usually 980 px), causing text and images to appear tiny.
The viewport tag tells the browser to match the screen’s width and to set an initial zoom level, enabling the page to adapt to phones, tablets and desktops.
description under 160 characters for optimal display in search results.author tag if the page is edited by a different person.<head> Section<head><meta charset="UTF-8">
<title>My IGCSE ICT Project</title>
<meta name="keywords" content="ICT, IGCSE, website authoring, metatags">
<meta name="author" content="Alex Johnson">
<meta name="description" content="A student project demonstrating the use of metatags in HTML.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
By correctly applying these metatags, a web page becomes more accessible, searchable and responsive across all devices – essential skills for the Cambridge IGCSE ICT examination.