The content layer is the part of a web page that holds the actual information a user reads or interacts with. It is created using HTML (HyperText Markup Language) and includes text, headings, lists, tables, links, and embedded media.
Every HTML document starts with a standard skeleton. Only the <body> section contains the content layer.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page title</title>
</head>
<body>
</body>
</html>
Headings organise content into a hierarchy. Use <h1> to <h6> (only <h2> and <h3> are shown here for notes).
<h2>Main Section Title</h2>
<h3>Sub‑section Title</h3>
Paragraphs are created with the <p> element. They automatically add vertical spacing.
Two main types of lists are used in web pages:
<ul>).<ol>).Tables organise data in rows and columns. Use <table> together with <thead>, <tbody>, <tr>, <th> and <td>.
| Tag | Purpose |
|---|---|
| <table> | Creates a table container |
| <thead> | Groups header rows |
| <tbody> | Groups body rows |
| <tr> | Defines a table row |
| <th> | Header cell (bold, centred by default) |
| <td> | Standard data cell |
| Day | Topic |
|---|---|
| Monday | HTML basics |
| Wednesday | Lists and tables |
| Friday | Embedding media |
Links connect one page to another or to a specific part of the same page. Use the <a> element with the href attribute.
Example: <a href="https://www.cambridgeinternational.org">Cambridge International</a>
HTML5 provides native tags for audio and video, removing the need for plug‑ins.
<audio controls>…</audio> – plays sound files.<video controls width="320">…</video> – plays video files.Semantic tags give meaning to sections of content, helping both users and search engines.
<header> – introductory content or navigation links.<nav> – a set of navigation links.<section> – a thematic grouping of content.<article> – self‑contained composition (e.g., a blog post).<aside> – tangentially related content (e.g., a sidebar).<footer> – closing information, such as author details or copyright.<h2>, <h3>).<ul> or <ol>).controls attribute.