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

Lesson ٤: Creating a Static Web Page Using AI

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

فيديو الشرح

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

ماذا ستتعلم؟

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

١. In the question "How can AI help in making a web page?" the options are: ١) It writes HTML and CSS code from our description ٢) It buys the computer ٣) It plugs the cables ٤) It prints the page. What is the number of the correct answer?
٢. In the question "What should a good prompt for a web page include?" the options are: ١) One word only ٢) The topic, the parts of the page, and the wanted style ٣) Nothing ٤) Random letters. What is the number of the correct answer?
٣. In the question "What do we do after the AI gives us the code?" the options are: ١) Delete it ٢) Print it and stop ٣) Save it, open it in a browser and check it ٤) Forget it. What is the number of the correct answer?

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

Level ١: We explore together

Lesson topic: Creating a Static Web Page Using AI. Generative AI can help us write the code of a static web page.

The story: We describe the page we want in a clear prompt, and the AI produces HTML and CSS code. A good prompt for a web page says what the page is about, what parts it has, and what style we want. After the AI writes the code, we save it, open it in a browser, and check that it looks right. We must review the code because AI can make mistakes, and we can ask it to fix or improve parts. In this lesson we learn how to create a static web page with the help of AI, step by step.

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

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

Easy · مثال ١

What can AI produce when we describe a web page?

  1. نقرأ السؤال معًا بهدوء.
  2. Two code languages.
الإجابة: HTML and CSS code
Easy · مثال ٢

Name two things a good web page prompt should mention.

  1. نقرأ السؤال معًا بهدوء.
  2. Topic, parts, style.
الإجابة: The page topic and the wanted style (also the parts of the page)
Easy · مثال ٣

What is the first thing to do after getting code from the AI?

  1. نقرأ السؤال معًا بهدوء.
  2. Save and see.
الإجابة: Save the code and open it in a browser to check it
Medium · مثال ٤

Write a clear prompt for a page about your school with two sections and a style.

  1. نقرأ السؤال معًا بهدوء.
  2. Topic, parts, style.
الإجابة: Example: create a static web page about my school with a heading, a welcome paragraph and a photo section, using a light green theme and large readable headings
Medium · مثال ٥

Why is reviewing AI code a duty, not an option?

  1. نقرأ السؤال معًا بهدوء.
  2. It can be wrong or off-goal.
الإجابة: Because AI can make mistakes or misunderstand the goal, and the human is responsible for the final result
Medium · مثال ٦

The AI page shows the wrong colors. What is the best next step?

  1. نقرأ السؤال معًا بهدوء.
  2. Ask for a specific fix.
الإجابة: Ask the AI to change the colors to the wanted ones, describing exactly what to fix
Medium · مثال ٧

Explain why AI is a starting point, not a full replacement, in making pages.

  1. نقرأ السؤال معًا بهدوء.
  2. Draft plus human judgment.
الإجابة: AI saves time with a first draft, but checking, fixing and final approval stay human work
Advanced · مثال ٨

Write a full prompt for a personal hobby page: topic, three parts, colors, fonts, and one image area. Then list two checks you would run on the result.

  1. نقرأ السؤال معًا بهدوء.
  2. Be specific.
الإجابة: Example prompt: create a static page about football with a title, an introduction paragraph, a list of my three favorite players, and an image area, in dark blue with white large text. Checks: open the page and confirm every section appears; confirm the colors and fonts match the request
Error analysis · مثال ٩

Your friend says: "Once the AI writes the code, the page is finished and needs no checking." Is this correct?

  1. نقرأ السؤال معًا بهدوء.
  2. Who approves the result?
الإجابة: Wrong, the human must review and test the page and ask for fixes before it is finished

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

Creating a Static Web Page Using AIUnit ١٣: Generative AI
▼
It writes HTML and CSS code from our descriptionHow can AI help in making a web page?
The topic, the parts of the page, and the wanted styleWhat should a good prompt for a web page include?
Save it, open it in a browser and check itFrom the lesson questions
Because AI can make mistakes or produce code that does not match what we wantWhy must we review AI-written code?

إنفوجرافيك: 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

١. The answer "The printer" to the question "Who is responsible for the final page: the AI or the human?" is correct.
٢. Which question has the answer "Because AI can make mistakes or produce code that does not match what we want"?
٣. The answer "Random letters" to the question "What should a good prompt for a web page include?" is correct.
٤. From the lesson explanation: Order the steps: check the page, write the prompt, save and open, get the code.
٥. The answer "Because AI can make mistakes or produce code that does not match what we want" to the question "Why must we review AI-written code?" is correct.
٦. From the lesson explanation: We describe the page we want in a clear prompt, and the AI produces HTML and CSS code.
٧. The answer "Because code is food" to the question "Why must we review AI-written code?" is correct.
٨. Which question has the answer "The human, because the human checks and approves"?

B) I practice and answer

١. From the lesson explanation: Generative AI can help us write the code of a static web page.
٢. The answer "Do magic" to the question "What is an example of a clear style request in a prompt?" is correct.
٣. The answer "It buys the computer" to the question "How can AI help in making a web page?" is correct.
٤. The answer "No need to review" to the question "Why must we review AI-written code?" is correct.
٥. The answer "It prints the page" to the question "How can AI help in making a web page?" is correct.
٦. The answer "Delete it" to the question "What do we do after the AI gives us the code?" is correct.
٧. The answer "The AI alone" to the question "Who is responsible for the final page: the AI or the human?" is correct.
٨. The answer "Use a light blue background and large readable headings" to the question "What is an example of a clear style request in a prompt?" is correct.

C) I review and play

١. The answer "Write the prompt, get the code, save and open, check the page" to the question "Order the steps: check the page, write the prompt, save and open, get the code." is correct.
٢. Which question has the answer "Write the prompt, get the code, save and open, check the page"?
٣. From the lesson explanation: What do we do after the AI gives us the code?
٤. Which question has the answer "The topic, the parts of the page, and the wanted style"?
٥. The answer "One word only" to the question "What should a good prompt for a web page include?" is correct.
٦. The answer "Print it and stop" to the question "What do we do after the AI gives us the code?" is correct.
٧. From the lesson explanation: A good prompt for a web page says what the page is about, what parts it has, and what style we want.
٨. The answer "Throw the computer" to the question "If the page is not what we wanted, what can we do?" is correct.

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

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

Lesson topic: Creating a Static Web Page Using AI. Generative AI can help us write the code of a static web page.

We review the key points of the lesson: How can AI help in making a web page? -> It writes HTML and CSS code from our description; What should a good prompt for a web page include? -> The topic, the parts of the page, and the wanted style.

We apply what we learned by answering these questions: How can AI help in making a web page? -> It writes HTML and CSS code from our description; What should a good prompt for a web page include? -> The topic, the parts of the page, and the wanted style; What do we do after the AI gives us the code? -> Save it, open it in a browser and check it.

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

  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 "It needs no electricity" to the question "Name one benefit of using AI for a first draft of a page." is correct.
٢. The answer "Save it, open it in a browser and check it" to the question "What do we do after the AI gives us the code?" is correct.
٣. The answer "The topic, the parts of the page, and the wanted style" to the question "What should a good prompt for a web page include?" is correct.
٤. From the lesson explanation: In this lesson we learn how to create a static web page with the help of AI, step by step.
٥. From the lesson explanation: If the page is not what we wanted, what can we do?
٦. The answer "Forget it" to the question "What do we do after the AI gives us the code?" is correct.
٧. The answer "Save, check, code, prompt" to the question "Order the steps: check the page, write the prompt, save and open, get the code." is correct.
٨. The answer "Use a typewriter" to the question "If the page is not what we wanted, what can we do?" is correct.

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

رمز QR هذه الصفحة. يفتح درس «Lesson ٤: Creating a Static Web Page Using AI» نفسه.