📋 المحتوى المنظم
📖 محتوى تعليمي مفصّل
تدريب 1
نوع: محتوى تعليمي
عدد طرق إدراج ملف CSS داخل مستند HTML.
تدريب 2
نوع: محتوى تعليمي
املأ الفراغات بقيمة زخرفة النص (text-decoration) طبقاً للصورة.
🔍 عناصر مرئية
Example
A screenshot of a web browser displaying an HTML file with CSS code. The browser window shows the title 'Example' and the URL 'C:/Users/Desktop/A^'. The content area displays Arabic text related to a football (كرة القدم) and its properties. Below the browser window, there is a section with CSS code snippets for h1, h2, and p elements, each containing a blank field next to 'text-decoration:'.
📄 النص الكامل للصفحة
--- SECTION: تدريب 1 ---
عدد طرق إدراج ملف CSS داخل مستند HTML.
--- SECTION: تدريب 2 ---
املأ الفراغات بقيمة زخرفة النص (text-decoration) طبقاً للصورة.
h1. h1 {
font-size: 20px;
text-decoration: ______
}
h2. h2 {
color: #9682ee;
font-size: 50%;
background-color: rgb(224, 242, 241);
text-decoration: ______
}
p. p {
color: rgb(244, 124, 64);
text-decoration: ______
}
--- VISUAL CONTEXT ---
**DIAGRAM**: Example
Description: A screenshot of a web browser displaying an HTML file with CSS code. The browser window shows the title 'Example' and the URL 'C:/Users/Desktop/A^'. The content area displays Arabic text related to a football (كرة القدم) and its properties. Below the browser window, there is a section with CSS code snippets for h1, h2, and p elements, each containing a blank field next to 'text-decoration:'.
Data: The visual shows CSS code with blank fields for 'text-decoration' properties for h1, h2, and p elements. The browser window displays Arabic text that seems to be a continuation of the exercise, possibly providing context or the expected values for the text-decoration property.
Context: This visual element is used in التدريب 2 to prompt the user to fill in the correct 'text-decoration' values based on the provided context and the example shown in the browser window.
🎴 بطاقات تعليمية للمراجعة
عدد البطاقات: 3 بطاقة لهذه الصفحة
ما هي الطرق الثلاثة لإدراج تنسيقات CSS داخل مستند HTML؟
- أ) استخدام JavaScript، تضمين ملف PHP، كتابة CSS داخل <body>.
- ب) ربط ملف CSS خارجي، كتابة CSS داخل الصفحة في قسم <head>، كتابة CSS داخل العنصر مباشرة باستخدام الخاصية style.
- ج) تعديل ملف .htaccess، استخدام قاعدة @import، إضافة CSS عبر وحدة تحكم المتصفح.
- د) نسخ CSS من موقع آخر، استخدام محرر WYSIWYG، حفظ CSS كملف نصي.
الإجابة الصحيحة: b
الإجابة: ربط ملف CSS خارجي، كتابة CSS داخل الصفحة في قسم <head>، كتابة CSS داخل العنصر مباشرة باستخدام الخاصية style.
الشرح: 1. **الطريقة الخارجية (External):** إنشاء ملف .css منفصل وربطه باستخدام وسم <link> داخل <head>. 2. **الطريقة الداخلية (Internal):** كتابة قواعد CSS داخل وسم <style> يوضع داخل <head>. 3. **الطريقة المضمنة (Inline):** استخدام السمة `style` داخل وسم العنصر HTML نفسه لتطبيق التنسيقات عليه مباشرة.
تلميح: فكر في مستويات التطبيق: خارجي، داخلي، ومضمن.
التصنيف: مفهوم جوهري | المستوى: سهل
ما هي القيم المحتملة لخاصية `text-decoration` في CSS والتي تستخدم لتزيين النص؟
- أ) bold (عريض)، italic (مائل)، normal (عادي).
- ب) left (يسار)، center (وسط)، right (يمين).
- ج) underline (تحته خط)، overline (فوقه خط)، line-through (خط في المنتصف).
- د) red (أحمر)، blue (أزرق)، green (أخضر).
الإجابة الصحيحة: c
الإجابة: underline (تحته خط)، overline (فوقه خط)، line-through (خط في المنتصف).
الشرح: خاصية `text-decoration` في CSS تستخدم لإضافة خطوط زخرفية للنص. القيم الأساسية هي: 1. **underline:** لرسم خط تحت النص. 2. **overline:** لرسم خط فوق النص. 3. **line-through:** لرسم خط عبر منتصف النص (كالتشطيب). هناك أيضاً قيمة `none` لإزالة أي تزيين.
تلميح: تذكر الاتجاهات: تحت، فوق، خلال.
التصنيف: تعريف | المستوى: سهل
أي من الخيارات التالية يوضح الاستخدام الصحيح للطريقة المضمنة (Inline) لتطبيق CSS؟
- أ) <style> p { color: blue; } </style>
- ب) <link rel="stylesheet" href="style.css">
- ج) <p style="color: blue;">نص</p>
- د) body { color: blue; }
الإجابة الصحيحة: c
الإجابة: <p style="color: blue;">نص</p>
الشرح: الطريقة المضمنة (Inline Style) تعني كتابة قواعد CSS مباشرة داخل وسم العنصر HTML باستخدام السمة `style`. الصيغة هي: `style="خاصية: قيمة;"`. الخيار الصحيح هو الوحيد الذي يطبق هذه الصيغة داخل وسم <p>.
تلميح: ابحث عن السمة `style` داخل وسم HTML.
التصنيف: صيغة/خطوات | المستوى: متوسط