From 027232f5e8fed8e4b0be2ea8dada65cdde7c9fdb Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Thu, 25 Dec 2025 15:55:26 +0100 Subject: [PATCH] fix: add kbd tags to validation messages for clarity - Wrap HTML element names in tags in all validation messages - Apply consistent formatting to both English and German lessons - Make hints clearer about which elements/attributes to use - Fix mobile editor layout overflow issue --- lessons/20-html-elements.json | 18 ++++++------ lessons/21-html-forms-basic.json | 24 ++++++++-------- lessons/22-html-forms-validation.json | 36 ++++++++++++------------ lessons/23-html-details-summary.json | 16 +++++------ lessons/24-html-progress-meter.json | 20 ++++++------- lessons/25-html-datalist.json | 12 ++++---- lessons/26-html-data-attributes.json | 2 +- lessons/27-html-dialog.json | 8 +++--- lessons/28-html-forms-fieldset.json | 18 ++++++------ lessons/29-html-figure.json | 18 ++++++------ lessons/30-html-tables.json | 22 +++++++-------- lessons/31-html-marquee.json | 12 ++++---- lessons/32-html-svg.json | 18 ++++++------ lessons/de/20-html-elements.json | 18 ++++++------ lessons/de/21-html-forms-basic.json | 24 ++++++++-------- lessons/de/22-html-forms-validation.json | 26 ++++++++--------- lessons/de/23-html-details-summary.json | 16 +++++------ lessons/de/24-html-progress-meter.json | 20 ++++++------- lessons/de/25-html-datalist.json | 12 ++++---- lessons/de/26-html-data-attributes.json | 2 +- lessons/de/27-html-dialog.json | 8 +++--- lessons/de/28-html-forms-fieldset.json | 18 ++++++------ lessons/de/29-html-figure.json | 18 ++++++------ lessons/de/30-html-tables.json | 22 +++++++-------- lessons/de/31-html-marquee.json | 12 ++++---- lessons/de/32-html-svg.json | 18 ++++++------ src/main.css | 14 +++++++-- 27 files changed, 230 insertions(+), 222 deletions(-) diff --git a/lessons/20-html-elements.json b/lessons/20-html-elements.json index 940e326..9d668e3 100644 --- a/lessons/20-html-elements.json +++ b/lessons/20-html-elements.json @@ -21,12 +21,12 @@ { "type": "element_exists", "value": "p", - "message": "Add a

paragraph element" + "message": "Add a <p> paragraph element" }, { "type": "parent_child", "value": { "parent": "p", "child": "strong" }, - "message": "Wrap the word 'important' with tags" + "message": "Wrap the word 'important' with <strong> tags" } ] }, @@ -45,22 +45,22 @@ { "type": "element_exists", "value": "header", - "message": "Add a

element" + "message": "Add a <header> element" }, { "type": "element_exists", "value": "main", - "message": "Add a
element" + "message": "Add a <main> element" }, { "type": "element_exists", "value": "footer", - "message": "Add a