Lesson ٥: Creating an Interactive Web Page
فيديو الشرح
الفيديو قيد الإنتاج، وسيظهر هنا فور اعتماده.
ماذا ستتعلم؟
- I identify the main ideas of the lesson
- I extract the key information
- I apply what I learned
- I connect cause and effect
- I review my answer
اختبر استعدادك أولًا
الشرح خطوة بخطوة
Level ١: We explore together
Lesson topic: Creating an Interactive Web Page. Now we use AI to build an interactive page that responds to the visitor.
The story: We ask the AI for HTML, CSS and JavaScript together, describing what should happen when the visitor acts. A good prompt for interactivity describes the events and the responses, like: when the button is clicked, show the answer. After saving the code we test every button and box ourselves before sharing the page. If something does not respond, we tell the AI exactly what failed and ask for a fix. In this lesson we learn to create and test an interactive page with AI help.
Level ٢: I review the idea
We review the key points of the lesson: What three languages does an interactive page need? -> HTML, CSS and JavaScript; What should an interactivity prompt describe? -> The events and the responses wanted.
We read each sentence again and mark its keyword.
Level ٣: I use what I learned
We apply what we learned by answering these questions: What three languages does an interactive page need? -> HTML, CSS and JavaScript; What should an interactivity prompt describe? -> The events and the responses wanted; Give an example of an event and response pair. -> When the button is clicked, the correct answer appears.
We explain why we rejected each wrong option before choosing the answer.
Level ٤: Games and activities
We take turns with a partner: one of us asks "What three languages does an interactive page need?" and the other answers, then we switch roles.
We write a card for each idea of the lesson and order them as they appear in the explanation.
We summarize the lesson in three sentences in our own words without copying.
Level ٥: Mastery and review
I can: identify the main ideas of the lesson; extract the key information; apply what I learned.
We review after one day, then after three days. A short five-minute review is better than one long session.
Optional challenge: I write two new questions of my own about the lesson and ask a partner to answer them.
أخطاء شائعة وتصحيحها
- We answer "What must we do after saving the interactive code?" with "Share it untested": Correct: Test every button and box ourselves
- We answer "If a button does nothing, what do we tell the AI?" with "Nothing": Correct: Exactly what failed and what we expected
- We answer "Why is testing interactive pages extra important?" with "Because testing is fun only": Correct: Because behavior can fail even when the page looks fine
- We answer "What is an example of a small interactive page?" with "A photo only": Correct: A one-question quiz with a check button
أمثلة محلولة متدرجة
Which three languages work together in an interactive page?
- نقرأ السؤال معًا بهدوء.
- Build, style, behavior.
What should an interactivity prompt describe?
- نقرأ السؤال معًا بهدوء.
- Events and ...
What is debugging?
- نقرأ السؤال معًا بهدوء.
- Find and ...
Write a prompt for an interactive page with one button that shows a joke when clicked.
- نقرأ السؤال معًا بهدوء.
- Event plus response.
Why must we test every button ourselves even if the code looks correct?
- نقرأ السؤال معًا بهدوء.
- Behavior can hide bugs.
A button shows the wrong answer. Write the exact message you would send the AI.
- نقرأ السؤال معًا بهدوء.
- What failed and expected.
Order the steps: test the page, write the prompt, fix with AI help, get the code.
- نقرأ السؤال معًا بهدوء.
- Prompt, code, test, fix.
Design an interactive quiz page with three questions: describe the events, the responses, and your testing checklist.
- نقرأ السؤال معًا بهدوء.
- Click, check, score.
Your friend says: "If the page looks good, it must work correctly." Is this correct?
- نقرأ السؤال معًا بهدوء.
- Looks versus behavior.
الخريطة الذهنية
إنفوجرافيك: Lesson map: words of the day
We review the questions after one day, then after three days
تدريبات متنوعة مع الإجابات والتفسير
اكتب الإجابة أو اختر ثم اضغط. بعد كل سؤال يظهر الحل مع التفسير.
A) I choose the answer
B) I practice and answer
C) I review and play
ملخص صوتي وقارئ الدرس
قارئ تجريبي يعمل بصوت جهازك (مجاني). ليس تسجيلًا احترافيًا، وجودة الصوت العربي تختلف من جهاز لآخر. التسجيل الصوتي الاحترافي لم يُنتج بعد.
Lesson topic: Creating an Interactive Web Page. Now we use AI to build an interactive page that responds to the visitor.
We review the key points of the lesson: What three languages does an interactive page need? -> HTML, CSS and JavaScript; What should an interactivity prompt describe? -> The events and the responses wanted.
We apply what we learned by answering these questions: What three languages does an interactive page need? -> HTML, CSS and JavaScript; What should an interactivity prompt describe? -> The events and the responses wanted; Give an example of an event and response pair. -> When the button is clicked, the correct answer appears.
مسار المراجعة للامتحان
- Day one (١٠ minutes): We read levels ١ to ٣ together, then solve exercises (A).
- Day two (١٠ minutes): We play the level ٤ games and solve exercises (B).
- Day three (١٠ minutes): Exercises (C), then the Level One test.
- Before the school exam: We repeat the Level Three test and look at the common mistakes.
اختبارات بثلاثة مستويات
Level One Test: The Basics
٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.
Level Two Test: Application
١٠ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.
Level Three Test: The Challenge
٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.
المصادر والحقوق
- لا يوجد فيديو أو تسجيل صوتي احترافي بعد.
- Programming and Artificial Intelligence book (English edition), First Secondary Grade, Second Term, Egyptian Ministry of Education and Technical Education: the book was used to determine lesson scope, order and titles only (no text or exercises copied).
- Scope of this term from the official MOE Term ٢ curriculum distribution (February ٢٠٢٦): Unit ٨ Networks (lessons ٨-١ to ٨-٣), Unit ٩ Databases (٩-١, ٩-٢), Unit ١٢ Programming (١٢-١ to ١٢-٣) and Unit ١٣ Generative AI (١٣-١ to ١٣-٧); the English edition mirrors the Arabic book structure. All explanations, examples, exercises and tests were originally authored in English for this edition; they are not a translation of the Arabic text. Review is automated, not by a teacher.
- All explanations, examples, exercises and tests on this page are authored by I BOOK PRESS. Automated and author review only, without teacher review; no video or professional audio yet.