☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

Generative AI and web pages

الأسبوع 13 · الوحدة ١٣ «الذكاء الاصطناعي التوليدي» (١): الذكاء الاصطناعي التوليدي والأوامر والهلوسة، صفحات الويب بـ HTML وCSS، السلوك بـ JavaScript، صفحة ثابتة بمساعدة الذكاء الاصطناعي · 3 دروس
3

Building a web page with an AI helper: plan, ask, check

ICT Secondary 1 Term 1, Chapter 13, Lessons 13-1 to 13-4: pp. 176–189
GoalPlan a page with an AI helper, ask for one part at a time, and check each answer.
New words
plan · a short list of what the page is for and what parts it hastest · run the page and compare what happens with what you expectedstatic page · a page that shows the same content every time it is openedauthor · the person who decides, checks and is responsible for the work
Explanation

A static page shows the same content every time it opens. To build one with an AI helper, work in small steps. First write the plan yourself: what is the page for, who will read it, and which parts does it have (a heading, a short text, a list, a picture with a text description, a button). Then ask for one part at a time, with a clear prompt, so each answer is short enough to read. Read the code the helper gives: do the tags open and close, are the quotes matched, does every size have a unit, does the id in the CSS match the id in the HTML? Then test the page and compare it with the plan. If something is wrong, change one thing and test again. Keep only what you understand. At the end you can say what the helper did and what you checked, because you are the author and the work is yours, with its mistakes as well. Never put personal data of real people on the page.

Worked examples
PartPlanPrompt idea
PurposeTell pupils when the library club meets-
HeadingLibrary clubWrite an HTML heading and one short paragraph.
ListThree activitiesAdd a list with three items.
A plan on paper for an invented page, then the first prompt that follows from it.
Html
1<h2>Library club</h2>
2<img src="club.png alt="Club room>
3<button id="join">Join
Read this code the helper gave. There are two mistakes: the quotes around the picture’s file name and its description are not closed, and the button’s tag is not closed. A reader who checks finds them before the page is shared.
Html
1<h2>Library club</h2>
2<p class="note">Open on Sunday.</p>
3<img src="club.png" alt="Club room">
4<button id="join">Join</button>
The corrected version after one change at a time: the quotes are closed and the button has a closing tag.
Class activity

On paper, plan a one-screen page for an invented school event. Write the purpose, the parts, and three prompts in order, one part each. Then write what you will check in the code before you test it.

Practice
1
Why ask for one part at a time?
2
Who is the author of the page?
3
The CSS says #title but the HTML has id="heading". What happens and what do you do?
4
What should the final presentation say about the helper?