💡 ملاحظة: h1 هو الأكبر والأهم، ويستخدم للعنوان الرئيسي للصفحة. الباقي للعناوين الفرعية حسب الأهمية.
📝 ثانياً: الفقرات (Paragraphs)
تُستخدم الفقرات لكتابة النصوص الطويلة. يبدأ كل فقرة بسطر جديد وتنتهي بمسافة قبل الفقرة التالية.
<p>This is the first paragraph. It contains long text that can span multiple lines.</p>
<p>This is the second paragraph. It appears on a new line separate from the first.</p>
This is the first paragraph. It contains long text that can span multiple lines.
This is the second paragraph. It appears on a new line separate from the first.
💡 ملاحظة: المتصفح يضيف مسافة تلقائية بين الفقرات.
↩️ ثالثاً: فواصل الأسطر (Line Breaks)
يُستخدم <br> لإنشاء سطر جديد داخل الفقرة بدون بدء فقرة جديدة.
<p>This is the first line<br>
This is the second line<br>
This is the third line</p>
This is the first line
This is the second line
This is the third line
💡 ملاحظة: <br> هو وسم بدون إغلاق (void element).
✒️ رابعاً: تنسيق النص (Bold, Italic, Underline)
تُستخدم هذه الوسوم لتنسيق النص وإبرازه:
الوسم
الوظيفة
مثال
<b> أو <strong>
خط عريض (Bold)
Bold Text
<i> أو <em>
خط مائل (Italic)
Italic Text
<u>
خط مسطر (Underline)
Underlined Text
<b>Bold Text</b>
<i>Italic Text</i>
<u>Underlined Text</u>
<strong>Strong Text (Semantic)</strong>
<em>Emphasized Text (Semantic)</em>
Bold Text - Italic Text - Underlined Text
Strong Text (Semantic) - Emphasized Text (Semantic)
💡 ملاحظة: <strong> و <em> لهما معنى دلالي (تأكيد المعنى)، بينما <b> و <i> للتنسيق الشكلي فقط.
💬 خامساً: الاقتباسات وعناصر الكود
تُستخدم هذه الوسوم لعرض الاقتباسات والنصوص البرمجية:
الوسم
الوظيفة
مثال
<blockquote>
اقتباس طويل
This is a long quote
<q>
اقتباس قصير (داخل السطر)
Short quote
<code>
نص برمجي
<h1>Hello</h1>
<pre>
نص منسق (يحافظ على المسافات)
Formatted Text
Preserves spaces
<blockquote>This is a long quote</blockquote>
<q>Short quote</q>
<code>;lt&h1;gt&Hello;lt&/h1;gt&</code>
<pre>Formatted Text
Preserves spaces</pre>
🔣 سادساً: الرموز الخاصة (Special Characters)
تُستخدم Entities لعرض الرموز التي قد يتعذر كتابتها مباشرة في HTML:
📝 المطلوب: تصميم مقال قصير عن موضوعك المفضل يحتوي على:
عنوان رئيسي <h1>
عنوان فرعي <h2>
ثلاث فقرات على الأقل <p>
نص عريض <b> أو <strong>
نص مائل <i> أو <em>
نص مسطر <u>
اقتباس <q> أو <blockquote>
رموز خاصة مثل ;copy&
<!DOCTYPE html>
<html>
<head>
<title>My First Article</title>
</head>
<body>
<h1>The World of Programming</h1>
<h2>Why I Love Programming?</h2>
<p>Programming is the language of the future. <b>Learning programming</b> opens many doors in life.</p>
<p>I love <i>HTML</i> because it is <u>easy and fun</u>.</p>
<p>As one programmer said: <q>Programming changes the world</q></p>
<p>All rights reserved ;copy& 2026</p>
</body>
</html>
The World of Programming
Why I Love Programming?
Programming is the language of the future. Learning programming opens many doors in life.
I love HTML because it is easy and fun.
As one programmer said: Programming changes the world