Be able to place appropriate elements in the head section of a web page including insert a page title to display in the browser, attach external stylesheets (with the correct hierarchy, using a relative file path), metatags to use the appropriate att

Published by Patrick Mutisya · 14 days ago

ICT 0417 – Website Authoring – Head Section Elements

Placing Elements in the <head> Section of a Web Page

This note explains how to correctly add the essential elements that belong in the <head> of an HTML document for the Cambridge IGCSE ICT 0417 syllabus.

1. Page Title

The <title> element defines the text that appears on the browser tab and is used by search engines.

<title>My First Web Page</title>

2. External Stylesheets – Hierarchy and Relative Paths

Use the <link> element to attach external CSS files. The order of the links determines the cascade: styles in later files override earlier ones when selectors have equal specificity.

OrderElementRelative Path ExamplePurpose
1<link rel="stylesheet" href="styles/base.css">styles/base.cssBase layout and default colours
2<link rel="stylesheet" href="styles/theme.css">styles/theme.cssTheme‑specific overrides (fonts, colours)
3<link rel="stylesheet" href="styles/print.css" media="print">styles/print.cssPrint‑only styling

3. Meta Tags – Common Attributes

Meta tags provide information to browsers and search engines. The most frequently used meta elements are listed below.

  • <meta charset="UTF-8"> – defines the character encoding.
  • <meta name="description" content="A brief description of the page"> – summary shown in search results.
  • <meta name="keywords" content="ICT, IGCSE, website, authoring"> – list of keywords (optional for modern SEO).
  • <meta name="author" content="John Doe"> – name of the page’s author.
  • <meta name="viewport" content="width=device-width, initial-scale=1.0"> – controls layout on mobile devices.

4. Default Target Window for Links

To set a default target for all hyperlinks on a page, use the <base> element inside the <head>. The most common value is _blank, which opens links in a new tab or window.

<base target="_blank">

5. Summary Table of Head Elements

ElementRequired AttributesTypical \cdot alue / ExampleNotes
<title>noneMy Web PageDisplayed on browser tab and in search results.
<link>rel, hrefrel="stylesheet" href="styles/main.css"Order matters for cascade; use relative paths.
<meta charset>charsetUTF-8Must be within the first 1024 bytes of the document.
<meta name="description">name, contentcontent="A short page description"Helps with SEO.
<meta name="viewport">name, contentcontent="width=device-width, initial-scale=1.0"Essential for responsive design.
<base>targettarget="_blank"Sets default link target for the whole page.

Suggested diagram: Flow of information from the <head> to the browser (title → tab, meta → SEO, link → CSS cascade, base → link behaviour).