Published by Patrick Mutisya · 8 days ago
Be able to place appropriate elements in the <head> section of a web page, including:
<head><title>Your Page Title</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css">
name="description"name="keywords"name="author"name="viewport"<base target="_blank">
When multiple style sheets are used, the order determines which rules take precedence – later sheets override earlier ones.
| Order | Element | Purpose |
|---|---|---|
| 1 | <title>…</title> | Sets the page title. |
| 2 | <link rel="stylesheet" href="css/reset.css"> | Reset/normalize styles – base rules. |
| 3 | <link rel="stylesheet" href="css/layout.css"> | Layout‑specific rules (grid, columns). |
| 4 | <link rel="stylesheet" href="css/theme.css"> | Theme colours and component styles – overrides layout if needed. |
All meta‑tags use the name and content attributes (except charset which is self‑contained).
<meta name="description" content="Brief summary of the page">
<meta name="keywords" content="keyword1, keyword2, keyword3">
<meta name="author" content="Your Name">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
The <base> element defines the default target for all hyperlinks that do not specify their own target attribute.
<base target="_self"> – opens links in the same tab (default behaviour).<base target="_blank"> – opens links in a new tab or window.<base target="_parent"> – opens in the parent frame (relevant for framesets).<head> Section<head>
<meta charset="UTF-8">
<title>My School Project</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/main.css">
<meta name="description" content="A simple web page for IGCSE ICT coursework.">
<meta name="keywords" content="IGCSE, ICT, web design">
<meta name="author" content="Student Name">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base target="_blank">
</head>
<head> elements and how each influences rendering.
css/style.css)?