At the end of the previous lesson, workshops.html had its final shape, but the word [Placeholder] appeared in almost every block. It is time for the third phase of the process: the content. On real projects, this phase is usually the longest, because it depends on other people (whoever writes the text, whoever takes the photos, whoever records the video) and because text that hasn't been thought through for the web spoils the best design. In this lesson you will learn the basic principles of writing for the web, write the real content of the two workshops, create the table of upcoming dates with time, and add the photos with picture and srcset, a short video with captions, the structured data for each workshop and the image for sharing on social media. Then you will take the opportunity to close the site's content-related pending items (the video with a fake identifier and the privacy policy) and to link the new page from the home page, the news and the contact page. There is hardly any new theory: you learnt everything you are going to use in earlier lessons. What's new is deciding and coordinating.
Contents
- Writing for the web
- The real content of the workshops
- The table of upcoming dates
- The photos:
picture,srcsetand lazy loading - A short video with captions
- Structured data: one
Eventper workshop - Metadata and the share image
- Closing the site's content-related pending items
- Linking to the workshops from the rest of the site
- Project:
workshops.htmlcomplete
Writing for the web
On a screen, most people don't read: they scan. They run their eyes over the headings, notice the first words of each paragraph and the links, and only stop to read when they find what they're looking for. Remember Sarah, who arrives at the workshops page from a social network, on her mobile, on the underground: she'll decide in a few seconds whether it interests her. Writing for the web is about making that scanning easier.
| Principle | In practice | Weak example | Better example |
|---|---|---|---|
| The important thing first | The conclusion at the start of the paragraph, the details afterwards (inverted pyramid) | "Ever since we opened, at The Blue Cup we've always wanted to share… that's why we run a bread-making workshop" | "Learn to make sourdough bread in three hours with our head baker" |
| Headings that inform | They can be understood on their own, without reading the text | "A unique experience" | "Latte art workshop" |
| Short paragraphs | One idea per paragraph; two to four sentences | A twelve-line block | Three four-line paragraphs |
| Lists for enumerating | Three or more parallel items, in ul, ol or dl |
"Includes an apron, materials, breakfast and…" | A list or a dl fact sheet |
| Descriptive links | The link text says where it leads | "To book, click here" | "Book a place on the bread-making workshop" |
| Concrete details | Numbers, dates, prices in the text, not only in images | "Affordable price" | "€25 per person" |
| Plain language | Simple sentences, active voice, no unnecessary jargon; address the reader as "you" if that's the brand's tone | "Confirmation of the booking will be carried out" | "We'll confirm your booking by email" |
Two of these principles are linked to accessibility: descriptive headings and links help people who use a screen reader to jump between them (Accessibility Testing), and plain language benefits people with cognitive disabilities, people who don't speak the language well and anyone in a hurry.
The Blue Cup's tone was set in Module 2: friendly, addressing the reader as "you", with simple sentences and the odd touch of humour. Carmen's and Diego's text must sound like the rest of the site. If you receive a text in a different tone, adapt it and send it to its author for approval.
The real content of the workshops
Carmen and Diego have sent their text and management has confirmed the details. This is the final fact sheet for each workshop:
| Detail | Sourdough bread-making workshop | Latte art workshop |
|---|---|---|
| When | First Saturday of every month, 10:00 to 13:00 | Second Thursday of every month, 18:00 to 20:00 |
| Length | 3 hours | 2 hours |
| Price | €25 per person | €30 per person |
| Places | Up to 15 | Up to 8 (one per station on the espresso machine) |
| Led by | Carmen, head baker | Diego, barista |
| Includes | Apron, materials, the bread you make, a jar of sourdough starter and breakfast at the end | All the coffees you make and a steel milk jug to practise with at home |
| Requirements | None; from age 12, under-18s accompanied by an adult | None; from age 16 |
The latte art workshop is new, and its details have been chosen consistently: the 18:00 to 20:00 time slot finishes just as the café closes (8:00–20:00); the maximum of 8 places reflects a real limitation (the stations on the machine), and it's worth saying so on the page, because it explains the slightly higher price.
The first complete card looks like this (replace the placeholder article):
<article id="bread-workshop" class="workshop">
<h2>Sourdough bread-making workshop</h2>
<!-- The photo will go here (next section) -->
<dl class="fact-sheet">
<dt>When</dt>
<dd>The first Saturday of every month, from <time datetime="10:00">10:00</time> to <time datetime="13:00">13:00</time> (<time datetime="PT3H">3 hours</time>)</dd>
<dt>Price</dt>
<dd>€25 per person</dd>
<dt>Places</dt>
<dd>Up to 15 people</dd>
<dt>Led by</dt>
<dd>Carmen, our head baker</dd>
</dl>
<p>Learn to feed a sourdough starter, and to knead, shape and bake a loaf of bread. You don't need any experience: Carmen guides you step by step.</p>
<p>You take home the bread you make and a jar of our sourdough starter so you can keep practising. Includes an apron, materials and breakfast at the end. From age 12; under-18s must be accompanied by an adult.</p>
<p><a class="btn" href="bookings.html">Book a place on the bread-making workshop</a></p>
</article>And the second:
<article id="latte-art-workshop" class="workshop">
<h2>Latte art workshop</h2>
<!-- The photo will go here (next section) -->
<dl class="fact-sheet">
<dt>When</dt>
<dd>The second Thursday of every month, from <time datetime="18:00">18:00</time> to <time datetime="20:00">20:00</time> (<time datetime="PT2H">2 hours</time>)</dd>
<dt>Price</dt>
<dd>€30 per person</dd>
<dt>Places</dt>
<dd>Up to 8 people, one per station on the espresso machine</dd>
<dt>Led by</dt>
<dd>Diego, our barista</dd>
</dl>
<p>Learn to steam milk and to draw your first hearts and tulips on the foam of your coffee. Each participant practises at their own station on the bakery's espresso machine.</p>
<p>Includes all the coffees you make (there'll be lots) and a steel milk jug so you can keep practising at home. No previous experience needed; from age 16.</p>
<p><a class="btn" href="bookings.html">Book a place on the latte art workshop</a></p>
</article>Notice the details:
- The times, in
timewithdatetimein 24-hour format, and the length, in ISO format (PT3H,PT2H), as in Other Semantic Elements. "The first Saturday of every month" has no machine-readable format: it is a recurrence rule, andtimedoesn't support it. The specific dates will go in the table. - No space between the euro sign and the figure ("€25"), as is the English convention; the sign and the number therefore can't be separated at the end of a line (HTML Entities).
- Two short paragraphs instead of one long one: the first says what you learn (what decides whether people are interested); the second, what's included and the requirements (what answers their questions).
- The explanation of the 8 places is in the fact sheet itself, next to the figure.
- The booking link still just leads to
bookings.html: in the next lesson you will make it go straight to the choice of workshop.
The page introduction, below the h1, replaces the placeholder paragraph:
<h1>Bakery workshops</h1>
<p>At The Blue Cup we don't just make bread and coffee: we also teach you how to make them. Our workshops are hands-on, in small groups and designed for beginners.</p>And the gift aside:
<aside class="featured" id="gift" aria-labelledby="gift-title">
<h2 id="gift-title">Want to give a workshop as a gift?</h2>
<p>A place on a workshop is a present that's enjoyed twice: while learning and at every breakfast afterwards. Tell us which workshop you'd like to give and we'll prepare a gift card for you.</p>
<p><a href="contact.html">Ask for your gift card from the contact page</a></p>
</aside>The table of upcoming dates
The specific dates are tabular data: each row is a session and the columns are compared with each other. Management has set the calendar up to March 2027:
<section id="dates">
<h2>Upcoming dates</h2>
<p>Calendar up to March 2027. We publish new dates every quarter.</p>
<div class="table-scroll" tabindex="0" role="region" aria-label="Upcoming workshop dates">
<table>
<caption>Upcoming workshop sessions, in date order</caption>
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">Workshop</th>
<th scope="col">Times</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><time datetime="2026-12-05">Saturday 5 December 2026</time></th>
<td><a href="#bread-workshop">Sourdough bread</a></td>
<td><time datetime="10:00">10:00</time>–<time datetime="13:00">13:00</time></td>
<td class="price">€25</td>
</tr>
<tr>
<th scope="row"><time datetime="2026-12-10">Thursday 10 December 2026</time></th>
<td><a href="#latte-art-workshop">Latte art</a></td>
<td><time datetime="18:00">18:00</time>–<time datetime="20:00">20:00</time></td>
<td class="price">€30</td>
</tr>
<tr>
<th scope="row"><time datetime="2027-01-02">Saturday 2 January 2027</time></th>
<td><a href="#bread-workshop">Sourdough bread</a></td>
<td><time datetime="10:00">10:00</time>–<time datetime="13:00">13:00</time></td>
<td class="price">€25</td>
</tr>
<!-- … and so on with the rest of the dates -->
</tbody>
</table>
</div>
</section>The full dates are: bread-making workshop on 5 December 2026, and 2 January, 6 February and 6 March 2027 (first Saturdays); latte art workshop on 10 December 2026, and 14 January, 11 February and 11 March 2027 (second Thursdays). Eight rows in total, in chronological order.
Everything you see here you learnt earlier; what's new is how it fits together:
- A scrolling container,
div.table-scroll, withtabindex="0",role="region"andaria-label: on mobile the table scrolls inside its box, not the whole page (Media Queries). - A
captionthat describes the table and its order (Accessible Tables). - The date as the row header (
th scope="row"): it is what identifies each session. When moving through the table, the screen reader will announce "Saturday 5 December 2026" before the workshop and the times. - The dates in
timewithdatetimeinYYYY-MM-DDformat, readable by machines, and in full text with the day of the week, readable by people. Writing the day of the week saves Anthony from having to check a calendar. - The workshop name links to its card with an anchor on the same page.
td.pricewith the price styling from the menu (Styling Tables).- The time range with an en dash "–", the convention in the project's tables.
Maintenance. This table goes out of date: on 6 December, the first row will already be in the past. Note a recurring task in
notes/plan.md: "Every month, after the workshop, delete the past row; every quarter, add the new dates and update each workshop'sEvent". An events page with past dates conveys neglect.
The photos: picture, srcset and lazy loading
The photographer has delivered two photos of 1600 × 1200 pixels. Before using them, prepare them as in Responsive Images and Videos: two sizes (800 and 400 pixels wide, 4:3 ratio) and two formats (AVIF and WebP), with descriptive lowercase names and a size suffix:
img/
├── bread-workshop-400.avif bread-workshop-400.webp
├── bread-workshop-800.avif bread-workshop-800.webp
├── latte-art-workshop-400.avif latte-art-workshop-400.webp
└── latte-art-workshop-800.avif latte-art-workshop-800.webpInsert each workshop's photo just below its h2, in place of the comment:
<h2>Sourdough bread-making workshop</h2>
<picture>
<source type="image/avif"
srcset="img/bread-workshop-400.avif 400w, img/bread-workshop-800.avif 800w"
sizes="(min-width: 64rem) 28rem, (min-width: 48rem) 45vw, calc(100vw - 4rem)">
<img src="img/bread-workshop-800.webp"
srcset="img/bread-workshop-400.webp 400w, img/bread-workshop-800.webp 800w"
sizes="(min-width: 64rem) 28rem, (min-width: 48rem) 45vw, calc(100vw - 4rem)"
alt="Carmen shows a group of participants in aprons how to shape a loaf, beside the kneading table"
width="800" height="600">
</picture> <h2>Latte art workshop</h2>
<picture>
<source type="image/avif"
srcset="img/latte-art-workshop-400.avif 400w, img/latte-art-workshop-800.avif 800w"
sizes="(min-width: 64rem) 28rem, (min-width: 48rem) 45vw, calc(100vw - 4rem)">
<img src="img/latte-art-workshop-800.webp"
srcset="img/latte-art-workshop-400.webp 400w, img/latte-art-workshop-800.webp 800w"
sizes="(min-width: 64rem) 28rem, (min-width: 48rem) 45vw, calc(100vw - 4rem)"
alt="Diego pours steamed milk into a cup and draws a heart on the coffee foam"
width="800" height="600" loading="lazy">
</picture>The decisions, one by one:
picturewith an AVIFsourceand theimgin WebP: the browser uses AVIF if it understands it and, if not, WebP, which every current browser understands today. There's no need here for a third JPEG option as with the storefront in the gallery; if your audience used very old browsers, you would add it (Responsive Images and Videos).sizesdescribes the card, not the screen: on a wide desktop, each card is about 28rem wide; between 48rem and 64rem, a little under half the screen; on mobile, the screen minus the padding ofmainand of the card. With this information, an ordinary mobile downloads the 400-pixel or the 800-pixel version depending on its pixel density.widthandheightwith the real dimensions of the 800-pixel version: the browser reserves the 4:3 space from the start and CLS stays at 0.- An
altthat describes what can be seen and why it matters: the people, the action and the atmosphere of the workshop, which is what the photo contributes. It doesn't start with "Image of" and doesn't repeat the heading (Adding Images). - Lazy loading only on the second photo. The bread-making workshop photo is on the first screen on desktop: it doesn't get
loading="lazy". The latte art one, on mobile, is two screens further down: withloading="lazy"it doesn't compete with what is seen first. On desktop, as it's also in view, the browser requests it immediately (Performance and Resource Loading).
Add a minimal rule in section 6 of styles.css, next to the .workshop rules, to integrate the photo into the card:
The fluid width (max-width: 100% and height: auto) is already applied to all images by section 2.
A short video with captions
Diego has recorded a 45-second video in which he explains, as he does it, how to draw a heart. Prepare it like the introductory video in the gallery (Embedding Videos and Responsive Images and Videos): two formats, a poster and a captions track.
media/
├── latte-art.webm
├── latte-art.mp4
└── latte-art.en.vtt
img/
└── latte-art-poster.jpg (640 × 360, the first frame with the finished heart)The captions file, media/latte-art.en.vtt, begins like this:
WEBVTT
00:00:00.000 --> 00:00:03.500
[Sound of the machine's steam wand]
00:00:03.500 --> 00:00:08.000
First we steam the milk:
the tip of the steam wand just below the surface.
00:00:08.000 --> 00:00:12.500
When the jug feels warm to the touch,
we turn off the steam.It is a captions track: as well as Diego's words, it includes the relevant sounds in square brackets, as you corrected in the audit in Accessibility Testing. Sarah will watch the video on the underground, with the sound off: the captions are as much for her as for a deaf person.
In workshops.html, replace the placeholder paragraph in the video section:
<section id="video">
<h2>Inside a latte art workshop</h2>
<p>Diego draws a heart step by step and explains what he's doing (<time datetime="PT45S">45 seconds</time>, with captions).</p>
<video controls width="640" height="360" preload="metadata" poster="img/latte-art-poster.jpg">
<source src="media/latte-art.webm" type="video/webm">
<source src="media/latte-art.mp4" type="video/mp4">
<track kind="captions" src="media/latte-art.en.vtt" srclang="en" label="English" default>
<p>Your browser can't play this video. <a href="media/latte-art.mp4">Download the latte art workshop video (MP4, 4 MB)</a>.</p>
</video>
</section>Go over the project conventions it follows:
- Heading and description before the video, with its length in
time: people know what they are going to see and how long it lasts before they press play. controls, withoutautoplay: never automatic playback with sound.preload="metadata": only the length and dimensions are downloaded; the full video, when play is pressed.widthandheightto reserve the space; the rule in section 2 makes it fluid withaspect-ratio: 16 / 9.- Fallback content with a download link that states the format and size.
What about audio description? WCAG 2.2, at level AA, requires important visual information in a recorded video to be available in audio too (criterion 1.2.5). Here Diego narrates every step he takes out loud, so the visual information is already in the audio and in the captions. If the video were just music with pictures, you would need an alternative description: a text below the video or a version with audio description.
Structured data: one Event per workshop
In Microdata and Structured Data you described the bread-making workshop as a schema.org Event inside its news item. Now that there is a reference page for the workshops, the structured data must be here. Add a JSON-LD block at the end of each article, just before </article>.
The one for the bread-making workshop:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "Sourdough bread-making workshop",
"description": "Learn to feed a sourdough starter, and to knead, shape and bake a loaf of bread with Carmen, our head baker.",
"image": "https://thebluecup.example/img/bread-workshop-800.webp",
"startDate": "2026-12-05T10:00+01:00",
"endDate": "2026-12-05T13:00+01:00",
"eventStatus": "https://schema.org/EventScheduled",
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
"location": {
"@type": "Place",
"name": "The Blue Cup",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 Example Street",
"addressLocality": "Fictional Town",
"addressCountry": "ES"
}
},
"organizer": { "@id": "https://thebluecup.example/#business" },
"performer": { "@type": "Person", "name": "Carmen" },
"maximumAttendeeCapacity": 15,
"offers": {
"@type": "Offer",
"price": "25.00",
"priceCurrency": "EUR",
"availability": "https://schema.org/LimitedAvailability",
"url": "https://thebluecup.example/bookings.html"
}
}
</script>The one for the latte art workshop is the same, with these values changed:
| Property | Value |
|---|---|
name |
"Latte art workshop" |
description |
"Learn to steam milk and to draw hearts and tulips on your coffee with Diego, our barista." |
image |
"https://thebluecup.example/img/latte-art-workshop-800.webp" |
startDate / endDate |
"2026-12-10T18:00+01:00" / "2026-12-10T20:00+01:00" |
performer |
{ "@type": "Person", "name": "Diego" } |
maximumAttendeeCapacity |
8 |
price |
"30.00" |
What's new compared with the news item version:
image: an absolute URL to the workshop photo, like all the URLs in structured data (Metadata).performer: the person who leads the workshop.- One block per event and per session: each
Eventdescribes the next session, not the whole series. When 5 December has passed, you will update the dates of the first one to the January session (it's the recurring task you noted down with the table). - The golden rule is respected: the price, the places, the date and the time are also in the visible text of the page.
And in news.html: delete the JSON-LD block from article#bread-workshop. If both were there, search engines would see the same workshop described twice from two pages, with the risk that one day they would contradict each other. This is the "reference source" decision you made when reviewing the overall plan.
Metadata and the share image
When Sarah shares the page, the social network will show the og:image image. The template's generic one (the storefront) says nothing about the workshops. Create img/share-workshops.jpg at 1200 × 630 pixels (Diego's hands over a cup with a heart drawn on it, with free space at the sides, because some networks crop the image) and update the head of workshops.html:
<meta property="og:image" content="https://thebluecup.example/img/share-workshops.jpg">
<meta property="og:image:alt" content="A cup of coffee with a heart drawn in the foam, on the counter at The Blue Cup">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">You already set the rest of the metadata (title, description, canonical URL, og:title, og:description, og:url) in the previous lesson. Review it now that you know the real content: the description must match what the page offers, and here it does.
Closing the site's content-related pending items
With the content of the new page finished, it's time to resolve the two content-related pending items from the inherited list (P1 and P2).
P1: the identifier of the interview video
Since Using iframes, the iframe in news.html has pointed to https://www.youtube-nocookie.com/embed/VIDEO_ID. Management has received the link to the published video from Neighbourhood TV. To get the identifier:
- Open the video on YouTube and click Share. The link has the form
https://youtu.be/XXXXXXXXXXXorhttps://www.youtube.com/watch?v=XXXXXXXXXXX. - The identifier is the last 11 characters (letters, numbers, hyphens and underscores). Ignore any parameter that comes after
?or&, such as?si=…, which is only used for tracking. - Replace it in both places where
VIDEO_IDappears: thesrcof theiframeand the "Watch the video on YouTube" link in thefigcaption.
<iframe
src="https://www.youtube-nocookie.com/embed/XXXXXXXXXXX"
…>
</iframe>
<figcaption>… <a href="https://www.youtube.com/watch?v=XXXXXXXXXXX" target="_blank" rel="noopener noreferrer">Watch the video on YouTube (opens in a new tab)</a>.</figcaption>Check with the global search that VIDEO_ID returns zero results and that the video plays.
If you can't get the identifier before publishing, don't publish the broken
iframe: replace thefigurewith a paragraph containing a link to the TV channel and delete thepreconnectfromnews.html, which would no longer make sense. A black hole with a YouTube error conveys carelessness; an honest piece of text doesn't.
P2: the privacy policy
privacy.html still says "Text pending". This course can't give you the text, and you shouldn't draft it either: a privacy policy is a legal document that must describe the business's real processing (what data, with which services, for how long) and that has to be drafted or reviewed by a data protection professional. What is your responsibility is:
- Giving the professional the technical information that only you know. Note it down in
notes/plan.mdand send it to them:- The forms and what data they collect: bookings (name, email, phone, date, guests, comments that may include allergies), contact and newsletter.
- Which service will process the forms (you'll choose it in the next lesson: wait until you have it to finalise the text) and in which country it stores the data.
- Embedded external services: YouTube (privacy-enhanced mode) on the news page and OpenStreetMap on the contact page.
- That the site uses no first-party cookies or analytics.
- The hosting that will be used (Testing and Deployment).
- Integrating the text received with good HTML structure: one
h1, anh2per section, lists for enumerating rights or purposes,mailto:links for contact and the date of the last update intime.
The skeleton that will let you integrate the text when it arrives looks like this (the headings are the sections that usually appear in these policies; the content will be provided by the professional):
<main id="content">
<h1>Privacy policy</h1>
<p>Last updated: <time datetime="2027-01-15">15 January 2027</time>.</p>
<h2>Who the data controller is</h2>
<!-- Text from the professional -->
<h2>What data we process and why</h2>
<!-- Text from the professional: one list per form -->
<h2>Why we are allowed to process it (legal basis)</h2>
<h2>Who we share it with</h2>
<h2>How long we keep it</h2>
<h2>Embedded external services</h2>
<h2>Your rights and how to exercise them</h2>
<!-- Includes how to lodge a complaint with the supervisory authority -->
</main>Until the text has been reviewed, pending item P2 remains open and blocks the publication of the forms. Mark it as such in the content plan. Don't replace the placeholder notice with a text copied from another website: it would describe processing that isn't yours.
Linking to the workshops from the rest of the site
A page that nobody links to can only be found through the menu. The plan provided for three incoming links:
1. The home page (index.html): in the opening hours table, the bread-making workshop cell used to link to bookings.html. Now it should lead to the workshop information:
<td><a href="workshops.html#bread-workshop">Bread-making workshop</a>: first Saturday of every month, <time datetime="10:00">10:00</time>–<time datetime="13:00">13:00</time></td>And in section#bakery, at the end of the text, a new sentence:
<p>Would you like to learn with us? Have a look at our <a href="workshops.html">sourdough bread-making and latte art workshops</a>.</p>(Adapt the first one to the exact text of your cell: what matters is the link destination.)
2. The news (news.html): in article#bread-workshop, after the paragraph about the next workshop and in place of the JSON-LD you have deleted:
<p>See all the dates, the price and the places on our <a href="workshops.html#bread-workshop">bakery workshops</a> page.</p>3. The contact page (contact.html): the frequently asked question about the workshop now points to the reference page:
<details name="faq">
<summary>How do I sign up for a workshop?</summary>
<p>You'll find all the information about the bread-making and latte art workshops on our <a href="workshops.html">workshops</a> page, and you can book a place using the <a href="bookings.html">booking form</a>.</p>
</details>In all three cases, the link text says where it leads, and in two of them the link points straight to the workshop's card with an anchor (Special Links).
Project: workshops.html complete
Recap and check:
- Text: introduction, two fact sheets with
dl(when, price, places, led by), two paragraphs per workshop and the giftaside. #datestable with the eight sessions,caption, date as the row header,timefor dates and times, and a scrolling container.- Photos with
picture(AVIF + WebP),srcsetandsizes, descriptivealt,width/height, andloading="lazy"only on the second one. - Video with two formats, a poster,
captions,preload="metadata"and a fallback download link. - Two
Eventblocks in JSON-LD, one per workshop; the one innews.html, removed. - Its own share image in Open Graph.
- Pending items: P1 closed (
VIDEO_IDwith zero results); P2 prepared and awaiting the professional's text. - Incoming links from the home page, the news and the contact page.
- Search for
[Placeholder]inworkshops.html: zero results. - Validation: Nu Html Checker with no errors on
workshops.html,index.html,news.htmlandcontact.html; and the schema.org validator detects twoEventitems onworkshops.htmland none onnews.html.
Update the content plan: all the workshops.html rows move to "Received" or "Done"; the video identifier row, to "Done"; the privacy policy row, to "In progress (waiting for the professional)".
Project status after the lesson
| File | Changes |
|---|---|
workshops.html |
Complete content: text, dates table, two photos, video with captions, two Event blocks, its own share image |
css/styles.css |
Section 6: .workshop img |
img/ |
bread-workshop-*, latte-art-workshop-* (AVIF and WebP, 400 and 800), latte-art-poster.jpg, share-workshops.jpg |
media/ |
latte-art.webm, latte-art.mp4, latte-art.en.vtt |
index.html |
Links to workshops.html in the opening hours and in the bakery section |
news.html |
Real video identifier; workshop JSON-LD removed; link to the workshops page |
contact.html |
Workshop FAQ linked to workshops.html |
privacy.html |
Awaiting the professional's text (technical information sent) |
Common Mistakes and Tips
- Publishing the text as it arrives. Check the tone, split long paragraphs, turn enumerations into lists and check every detail (dates, prices) with management.
- "Click here", "More information". Links that can't be understood out of context. Go over the page's list of links with a screen reader or with the WAVE extension.
- The same detail on several pages. When the workshop price changes, how many files will you have to touch? Summarise and link to the reference page.
- Unprepared images. A 1600-pixel, 2 MB photo in a 28rem card means a slow LCP. Always resize and convert before uploading.
loading="lazy"on every image "just in case". On the main image, it delays the LCP. Only outside the first screen.- Captions without sounds. If the track is
captions, include the relevant sounds. - JSON-LD that doesn't match the visible text. It's the quickest way to make search engines stop trusting your structured data.
- Drafting the privacy policy yourself or copying it. It's a legal document: it is drafted or reviewed by a professional, with the technical information you provide.
- Tip: before considering a content page finished, read it out loud. Paragraphs that are too long and convoluted sentences stand out straight away.
Exercises
Exercise 1. Rewrite this paragraph, sent by management for the workshops page, applying the principles of writing for the web. You can split it, turn parts of it into lists and change the links.
<p>At The Blue Cup we have always believed that sharing what we know is a way of building community, and that is why for some time now we have been organising various training activities in which participants, regardless of their level, can get closer to the world of bread and coffee, always in a relaxed atmosphere. If you are interested, click <a href="bookings.html">here</a> to book or <a href="contact.html">here</a> if you have any questions.</p>Exercise 2. Management decides that, from April 2027, the latte art workshop will be held on the second Saturday of every month, from 17:00 to 19:00. List all the changes that would have to be made to the site, file by file.
Exercise 3 (your own project). Choose the most important page of your project and replace all its [Placeholder] content with real (or realistic) content. Include at least: a description list or a table with data, an image prepared with srcset and sizes, and structured data of the schema.org type that best describes your business or your main event. Check the structured data with the schema.org validator.
Solutions
Solution 1. One suggestion:
<p>Our workshops teach you to make bread and coffee the way we do in the bakery: they're hands-on, in small groups and you don't need any experience.</p>
<ul>
<li><a href="#bread-workshop">Sourdough bread-making workshop</a>: the first Saturday of every month.</li>
<li><a href="#latte-art-workshop">Latte art workshop</a>: the second Thursday of every month.</li>
</ul>
<p>Any questions? <a href="contact.html">Write to us from the contact page</a>.</p>- The important thing (what they are, who they're for) goes first; the business philosophy is reduced to "the way we do in the bakery".
- The two workshops, in a list with links to their cards.
- The two "here" links become descriptive links. The booking one disappears from this paragraph: each card already has its booking link next to the information you need to read before booking.
Solution 2.
| File | Change |
|---|---|
workshops.html |
In the latte art fact sheet: "The second Saturday of every month, from 17:00 to 19:00", with its time elements. In the table: the latte art rows from April with the new dates (10 April, 8 May…), reordered by date. In the Event: the startDate and endDate of the corresponding session when the time comes |
bookings.html |
The text of the latte art workshop option in the form (you will create it in the next lesson) and, if it mentions it, the conditions dialog. Check that 17:00 is within the min/max of the time field |
index.html |
If the weekly opening hours table includes latte art, add or move its row to "Weekend" |
contact.html |
Review the workshops FAQ if it mentions days |
news.html |
Probably, a new news item announcing the change, with a link to workshops.html |
notes/plan.md |
Update the workshop fact sheet and the recurring task |
privacy.html |
Nothing: no data processing changes |
The lesson of the exercise: even with a reference page, a change touches several files. That's why it's best for the others to summarise and link instead of repeating the details.
Solution 3. Open answer. Check that:
- There is no
[Placeholder]left on the page. - The text follows the inverted pyramid, with short paragraphs and descriptive links.
- The image has versions in two sizes, a
sizesattribute that describes the real width of its container, a suitablealt,widthandheight, andloading="lazy"only if it is outside the first screen. - The structured data uses absolute URLs, all the data it contains also appears in the visible text and the schema.org validator shows no errors. Common types:
LocalBusinessor a more specific one (BookStore,BikeStore,MusicSchool…),Eventfor activities with a date,Productfor items.
Conclusion
In this lesson you have completed the content phase. You have learnt to write for reading that scans (the important thing first, headings that inform, short paragraphs, lists, concrete details and descriptive links) and you have applied those principles to the real text of the two workshops. You have filled workshops.html with fact sheets in dl, times and lengths in time, an accessible, scrollable table of upcoming dates, photos prepared with picture, srcset, sizes and lazy loading only where appropriate, a 45-second video with captions that include the sounds, a JSON-LD Event per workshop and its own image for sharing on social media. You have also applied a decision from the plan: the workshops page is the reference source, so the news item's Event has gone and the home page, the news and the contact page now link to it. And you have closed the pending item for the interview video and prepared the one for the privacy policy, which is still waiting for a professional's text. There is, however, one journey that still doesn't really work: when Sarah clicks "Book a place on the latte art workshop", she arrives at a form with no final styles, which doesn't offer that workshop and which sends the data to a fictitious address. In the next lesson, Integrating the Booking Form, you will finish bookings.html: you will give it its final design, make the workshop links go straight to the choice of workshop, connect it to a real form service with spam protection and create the thanks.html confirmation page.
HTML Course
Module 1: Introduction to HTML
- What Is HTML?
- Setting Up Your Work Environment
- Basic Structure of an HTML Document
- Tags, Elements and Attributes
- Creating Your First HTML Page
- File Organisation and Paths
Module 2: Text Formatting in HTML
- Headings and Paragraphs
- Text Formatting Tags
- Lists: Ordered, Unordered and Description Lists
- Block Quotes and Preformatted Text
- Block and Inline Elements: div and span
Module 3: Links and Media in HTML
- Creating Hyperlinks
- Special Links: Anchors, Email, Phone and Downloads
- Adding Images
- Embedding Videos
- Using the Audio Element
Module 4: Tables in HTML
- Basic Table Structure
- Table Head, Body and Foot
- Merging Cells: colspan and rowspan
- Accessible Tables: caption, scope and headers
- Styling Tables
Module 5: Forms in HTML
- Creating a Basic Form
- Form Elements: input, textarea and select
- HTML5 Input Types
- Labels and Grouping: label, fieldset, legend and datalist
- Form Attributes and Validation
- Submitting Forms
Module 6: HTML5 Semantic Elements
- Introduction to Semantic HTML
- header, nav and footer
- article, section and aside
- main and figure
- Other Semantic Elements: time, address, details and dialog
Module 7: Advanced HTML Techniques
- HTML Entities
- Using iframes
- Data Attributes
- Metadata: meta, SEO and Open Graph
- Microdata and Structured Data
- Graphics in HTML: SVG and canvas
Module 8: Integrating HTML and CSS
- Linking CSS to HTML
- Inline, Internal and External CSS
- Basic CSS Selectors
- The Box Model
- Styling HTML Elements
- Introduction to Layout with Flexbox and Grid
Module 9: Responsive Web Design
Module 10: Best Practices and Accessibility
- HTML Best Practices
- Validating HTML Code
- Web Accessibility Basics
- Using ARIA Roles and Attributes
- Accessibility Testing
- Performance and Resource Loading
