☰ Year plan · Communication Technology

Generative AI and web pages

Week 13 · Chapter 13 AI Programming (1): generative AI, prompts and hallucination, web pages with HTML and CSS, adding behaviour with JavaScript, a static web page built with an AI helper · 3 lessons
Answers are for parents and teachers.
1
Rewrite the vague prompt “Make me a poster” into a clear prompt that has purpose, audience, format and a limit.
2
Find the two mistakes in this code.
Html
1<p>Welcome
2<img src="club.png alt="Room">
3
Write a CSS rule that makes the paragraph with id intro red and 18 pixels tall.
4
What does this JavaScript do when the button is clicked?
JavaScript
1const btn = document.getElementById("save");
2btn.onclick = () => {
3  document.getElementById("status").textContent = "Saved";
4};
5
A helper says a famous scientist said a sentence, with a year. How can you check it, and what do you do if you cannot?