These notes concentrate on the content layer but indicate where meta‑data, forms and accessibility fit into the overall model.
<body>)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"> <!-- required, must be first meta‑tag -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Brief description of the page">
<meta name="keywords" content="HTML, ICT, Cambridge">
<meta name="author" content="Your Name">
<title>Page title</title>
<!-- Link to external CSS (presentation layer) – optional for the content layer notes -->
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
</body>
</html>
| Meta‑tag | Purpose |
|---|---|
<meta charset="UTF-8"> | Specifies character encoding – mandatory and must be the first meta‑tag. |
<meta name="viewport" content="width=device-width, initial-scale=1"> | Ensures proper scaling on mobile devices. |
<meta name="description" content="Brief description of the page"> | Provides a summary for search‑engine results. |
<meta name="keywords" content="HTML, ICT, Cambridge"> | List of key terms (optional but often taught). |
<meta name="author" content="Your Name"> | Identifies the page’s author. |
<h1> per page.
<h1>Main title (only once)</h1>
<h2>Section title</h2>
<h3>Sub‑section title</h3>
...
<h6>Lowest level heading</h6>
<p>…</p> automatically adds vertical spacing.| Block‑level | Inline |
|---|---|
<div>, <p>, <h1>–<h6>, <ul>, <table> |
<span>, <a>, <img>, <strong>, <em> |
<ul>
<li>Home</li>
<li>About us</li>
<li>Contact</li>
</ul>
<ol>
<li>Plan the layout</li>
<li>Write the HTML</li>
<li>Test in browsers</li>
</ol>
A well‑structured table improves readability and accessibility.
<table>
<caption>Weekly ICT topics</caption>
<thead>
<tr>
<th scope="col">Day</th>
<th scope="col">Topic</th>
</tr>
</thead>
<tbody>
<tr>
<td>Monday</td>
<td>HTML basics</td>
</tr>
<tr>
<td>Wednesday</td>
<td>Lists and tables</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">All topics are part of the ICT curriculum</td>
</tr>
</tfoot>
</table>
<caption> – short description of the table’s purpose.scope="col" or scope="row" on <th> helps screen readers.<tfoot> – optional summary or footnote rows.<a href="page2.html">Next page</a>
<a href="https://www.cambridgeinternational.org" target="_blank" rel="noopener">Cambridge International</a>
<a href="mailto:student@example.com">Email your teacher</a>
<a href="#section3">Jump to Section 3</a>
...
<h2 id="section3">Section 3</h2>
<img src="logo.png" alt="Cambridge ICT logo" width="120" height="60">
alt describes the image for users who cannot see it – mandatory for accessibility.width and height to reserve space and improve loading speed.
<audio controls>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<video controls width="320">
<source src="video.mp4" type="video/mp4">
Your browser does not support the video element.
</video>
| Element | Typical Use |
|---|---|
<header> | Introductory content, site logo, primary navigation. |
<nav> | Group of navigation links. |
<main> | Primary content of the document (only once per page). |
<section> | Thematic grouping of related content. |
<article> | Self‑contained composition (blog post, news item). |
<aside> | Sidebars, related links, adverts. |
<footer> | Closing information – author, copyright, contact. |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My ICT Project</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<header>
<h1>My ICT Project</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section id="intro">
<h2>Introduction</h2>
<p>This page demonstrates the content layer required for the IGCSE ICT syllabus.</p>
</section>
<section id="media">
<h2>Multimedia</h2>
<figure>
<img src="images/diagram.png" alt="Diagram of the three‑layer model">
<figcaption>The three‑layer model</figcaption>
</figure>
<audio controls>
<source src="audio/intro.mp3" type="audio/mpeg">
Your browser does not support audio.
</audio>
</section>
</main>
<aside>
<h3>Useful links</h3>
<ul>
<li><a href="https://www.w3.org/" target="_blank" rel="noopener">W3C</a></li>
<li><a href="https://validator.w3.org/" target="_blank" rel="noopener">HTML Validator</a></li>
</ul>
</aside>
<footer>
<p>© 2026 Your Name – All rights reserved.</p>
</footer>
</body>
</html>
Forms collect user input. Even if not examined, students should recognise the main elements.
<form action="process.php" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="age">Age:</label>
<input type="number" id="age" name="age" min="1" max="120">
<input type="submit" value="Send">
</form>
type values: text, email, number, date, password, checkbox, radio, submit.<label> with its control using for (or wrap the control inside the label).required, min, max, pattern for simple client‑side validation.alt text for every <img>.<header>, <nav>, <main>, <section>, <article>, <aside>, <footer>) to give structure.<caption> and use scope on <th> cells.| Path type | Example | When to use |
|---|---|---|
| Absolute | https://www.example.com/images/photo.jpg |
Linking to resources on another website. |
| Relative (same folder) | photo.jpg |
Local resources stored in the same directory as the HTML file. |
| Relative (sub‑folder) | images/photo.jpg |
When the resource is inside a sub‑directory. |
| Relative (parent folder) | ../styles/style.css |
Moving up one level before descending into another folder. |
For IGCSE projects, always use relative paths for local files so the site works when moved to a different server.
<div> for Layout & Class AssignmentThe <div> element groups block‑level content and enables CSS styling via classes or IDs.
<div class="sidebar">
<h3>Useful links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
lang attribute.<head> (charset first).<h1>–<h6>).<ul> or <ol>).<caption>, <thead>, <tbody>, optional <tfoot>, and scope attributes.target="_blank" and rel="noopener" for external links.alt text and size attributes.controls attribute.<header>, <nav>, <main>, <section>, <article>, <aside>, <footer>).Create an account or Login to take a Quiz
Log in to suggest improvements to this note.
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.