Egypt › Secondary › First Secondary Grade › Programming and Artificial Intelligence › Unit ١٣: Generative AI

Lesson ٣: Interactive Web Pages (HTML and JavaScript)

First Secondary GradeProgramming and Artificial IntelligenceSecond Termالدرس ٣٣٠ دقيقة

فيديو الشرح

الفيديو قيد الإنتاج، وسيظهر هنا فور اعتماده.

ماذا ستتعلم؟

اختبر استعدادك أولًا

١. In the question "What is an interactive web page?" the options are: ١) A page that responds to the actions of the visitor ٢) A page that never changes ٣) A printed page ٤) A page without code. What is the number of the correct answer?
٢. In the question "Which language adds interactivity to web pages?" the options are: ١) HTML ٢) JavaScript ٣) CSS ٤) SQL. What is the number of the correct answer?
٣. In the question "Give an example of interactivity." the options are: ١) Reading a fixed paragraph ٢) Turning off the screen ٣) Clicking a button and seeing the page change ٤) Printing paper. What is the number of the correct answer?

الشرح خطوة بخطوة

Level ١: We explore together

Lesson topic: Interactive Web Pages (HTML and JavaScript). A static page only shows content, but an interactive page responds to the visitor.

The story: When you click a button and something changes on the page, that is interactivity. JavaScript is the language that adds interactivity to web pages. With JavaScript a page can react to clicks, check answers, hide or show parts, and do small calculations. HTML builds the structure, CSS styles it, and JavaScript makes it alive. In this lesson we learn what interactivity means and what JavaScript adds to a page.

أخطاء شائعة وتصحيحها

أمثلة محلولة متدرجة

Easy · مثال ١

Which language makes a web page interactive?

  1. نقرأ السؤال معًا بهدوء.
  2. Starts with J.
الإجابة: JavaScript
Easy · مثال ٢

Give one example of interactivity on a web page.

  1. نقرأ السؤال معًا بهدوء.
  2. Click and see change.
الإجابة: Clicking a button and seeing content change (like showing an answer)
Easy · مثال ٣

What does each of HTML, CSS and JavaScript do?

  1. نقرأ السؤال معًا بهدوء.
  2. Build, style, ...
الإجابة: HTML builds the structure, CSS styles it, JavaScript adds interactivity
Medium · مثال ٤

Classify these pages as static or interactive: a news article page, and a quiz page that checks answers.

  1. نقرأ السؤال معًا بهدوء.
  2. Does it respond?
الإجابة: The news article is static; the quiz page is interactive because it responds to the visitor
Medium · مثال ٥

Explain what an event is and give two examples.

  1. نقرأ السؤال معًا بهدوء.
  2. Visitor actions.
الإجابة: An event is an action by the visitor that the page can respond to, like a click or typing in a box
Medium · مثال ٦

A button on a page does nothing when clicked. Name one likely reason.

  1. نقرأ السؤال معًا بهدوء.
  2. Who handles clicks?
الإجابة: The JavaScript that handles the click event is missing or has an error
Medium · مثال ٧

Why is it useful that JavaScript runs in the visitor browser?

  1. نقرأ السؤال معًا بهدوء.
  2. Fast response.
الإجابة: Because the page can respond instantly without waiting for a far server for every small action
Advanced · مثال ٨

Design a one-question quiz page: name the parts built with HTML, the style touches with CSS, and the behaviors with JavaScript.

  1. نقرأ السؤال معًا بهدوء.
  2. Question, button, feedback.
الإجابة: HTML: the question text, a place for the answer and a check button; CSS: colors and readable layout; JavaScript: read the answer on click, compare it with the correct one, and show right or wrong feedback
Error analysis · مثال ٩

Your friend says: "CSS can check quiz answers." Is this correct?

  1. نقرأ السؤال معًا بهدوء.
  2. Style versus logic.
الإجابة: Wrong, CSS only styles the page; checking answers is logic done by JavaScript

الخريطة الذهنية

Interactive Web Pages (HTML and JavaScript)Unit ١٣: Generative AI
▼
A page that responds to the actions of the visitorWhat is an interactive web page?
JavaScriptWhich language adds interactivity to web pages?
Clicking a button and seeing the page changeFrom the lesson questions
HTML for structure, CSS for style, JavaScript for interactivityWhat three languages work together in a web page?

إنفوجرافيك: Lesson map: words of the day

Lesson map: words of the day
اضغط على أي صف لترى الفكرة.
The key ideas of the lesson in order
We review the questions after one day, then after three days

تدريبات متنوعة مع الإجابات والتفسير

اكتب الإجابة أو اختر ثم اضغط. بعد كل سؤال يظهر الحل مع التفسير.

A) I choose the answer

١. From the lesson explanation: Where does JavaScript usually run when you visit a page?
٢. Which question has the answer "Because it lets pages respond and change while you use them"?
٣. The answer "HTML for structure, CSS for style, JavaScript for interactivity" to the question "What three languages work together in a web page?" is correct.
٤. From the lesson explanation: Is a page with a quiz that checks your answer static or interactive?
٥. The answer "In the visitor browser" to the question "Where does JavaScript usually run when you visit a page?" is correct.
٦. The answer "Print papers" to the question "What can JavaScript do on a page?" is correct.
٧. From the lesson explanation: Which language adds interactivity to web pages?
٨. From the lesson explanation: What can JavaScript do on a page?

B) I practice and answer

١. The answer "On the moon" to the question "Where does JavaScript usually run when you visit a page?" is correct.
٢. Which question has the answer "Interactive"?
٣. From the lesson explanation: What is an interactive web page?
٤. The answer "Word, Excel, Paint" to the question "What three languages work together in a web page?" is correct.
٥. The answer "CSS only" to the question "A button that shows the correct answer when clicked uses which language?" is correct.
٦. From the lesson explanation: When you click a button and something changes on the page, that is interactivity.
٧. From the lesson explanation: What three languages work together in a web page?
٨. The answer "HTML only" to the question "A button that shows the correct answer when clicked uses which language?" is correct.

C) I review and play

١. The answer "SQL" to the question "Which language adds interactivity to web pages?" is correct.
٢. The answer "DNS" to the question "A button that shows the correct answer when clicked uses which language?" is correct.
٣. The answer "SQL, DNS, IP" to the question "What three languages work together in a web page?" is correct.
٤. The answer "A page that responds to the actions of the visitor" to the question "What is an interactive web page?" is correct.
٥. Which question has the answer "Something the visitor does, like a click, that the page can respond to"?
٦. Which question has the answer "HTML for structure, CSS for style, JavaScript for interactivity"?
٧. The answer "A holiday" to the question "What is an event in web pages?" is correct.
٨. Which question has the answer "Clicking a button and seeing the page change"?

ملخص صوتي وقارئ الدرس

قارئ تجريبي يعمل بصوت جهازك (مجاني). ليس تسجيلًا احترافيًا، وجودة الصوت العربي تختلف من جهاز لآخر. التسجيل الصوتي الاحترافي لم يُنتج بعد.

Lesson topic: Interactive Web Pages (HTML and JavaScript). A static page only shows content, but an interactive page responds to the visitor.

We review the key points of the lesson: What is an interactive web page? -> A page that responds to the actions of the visitor; Which language adds interactivity to web pages? -> JavaScript.

We apply what we learned by answering these questions: What is an interactive web page? -> A page that responds to the actions of the visitor; Which language adds interactivity to web pages? -> JavaScript; Give an example of interactivity. -> Clicking a button and seeing the page change.

مسار المراجعة للامتحان

  1. Day one (١٠ minutes): We read levels ١ to ٣ together, then solve exercises (A).
  2. Day two (١٠ minutes): We play the level ٤ games and solve exercises (B).
  3. Day three (١٠ minutes): Exercises (C), then the Level One test.
  4. Before the school exam: We repeat the Level Three test and look at the common mistakes.

اختبارات بثلاثة مستويات

Level One Test: The Basics

٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.

١. The answer "Because it talks loudly" to the question "Why is JavaScript called the language that makes pages alive?" is correct.
٢. Which question has the answer "A page that responds to the actions of the visitor"?
٣. The answer "Clicking a button and seeing the page change" to the question "Give an example of interactivity." is correct.
٤. The answer "JavaScript" to the question "Which language adds interactivity to web pages?" is correct.
٥. From the lesson explanation: JavaScript is the language that adds interactivity to web pages.
٦. From the lesson explanation: Give an example of interactivity.
٧. The answer "Python, Java, C only" to the question "What three languages work together in a web page?" is correct.
٨. The answer "A database" to the question "Is a page with a quiz that checks your answer static or interactive?" is correct.

المصادر والحقوق

رمز QR هذه الصفحة. يفتح درس «Lesson ٣: Interactive Web Pages (HTML and JavaScript)» نفسه.