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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476

-------- Page 1 (Lecture #5-01.jpg) ---------
Faculty of Information Technology – Tripoli University

مقدمة في برمجة الإنترنت
Introduction to Internet Programming

[ ITGS226 ]

المحاضرة الخامسة

أستاذة المادة
أ. وفاء حسين المصباحي

HTML5
JS
Cloud
CSS3
XML
flat
PHP
header
.com
footer
.net

2025 ربيع

-------- Page 2 (Lecture #5-02.jpg) ---------
المحاضرة التي سيتم دراستها في مقرر : مقدمة في برمجة الإنترنت
Introduction to Internet Programming
المحاضرة الخامسة

تابع

1. الفقرات HTML Paragraphs.

2. عنصر الخط الأفقي Horizontal Line.

3. التعليقات Comments.

4. عناصر تنسيق النصوص Text Formatting.

-------- Page 3 (Lecture #5-03.jpg) ---------
HTML Paragraphs الفقرات

• وسم <br> أو <br/> : يستخدم لعمل سطر جديد line break.

- هو Single Tag.

- هو عنصر فاضي Empty element.

-------- Page 4 (Lecture #5-04.jpg) ---------
HTML Paragraphs الفقرات

مثال: يوضح كيف يعمل وسم <br> وسم <span>.

<html lang="en">
  <head>
    <title> Line break </title>
    <meta charset='utf-8'>
  </head>
  <body>
    <span> WEB PAGE: a single document on a website.</span>
    <br>
    <span> HOME PAGE: The entry page for a website. </span>
  </body>
</html>

2

-------- Page 5 (Lecture #5-05.jpg) ---------
عملي ( program#15.html )

File  Edit  Selection
EXPLORER

HTML LANGUAGE
  program#2.html
  program#3.html
  program#4.html
  program#5.html
  program#6.html
  program#7.html
  program#8.html
  program#9.html
  program#10.html
  program#11.html
  program#12.html
  program#13.html
  program#14.html
  program#15.html
  program#16.html

OUTLINE
TIMELINE

program#15.html
html

<html lang="en">
<head>
    <title>   Line break   </title>
    <meta charset='utf-8'>
</head>
<body>
    <span>   WEB PAGE: a single document on a website. </span>
    <br>
    <span>   HOME PAGE: The entry page for a website.  </span>
</body>
</html>

Ln 11, Col 8   Spaces: 4   UTF-8   CRLF   HTML

3

-------- Page 6 (Lecture #5-06.jpg) ---------
( program#15.html ) عملي

Line break

WEB PAGE: a single document on a website.
HOME PAGE: The entry page for a website.

4

-------- Page 7 (Lecture #5-07.jpg) ---------
عنصر الخط الأفقي Horizontal Line

- وسم  <hr>  أو  <hr/> : يستخدم لإنشاء الخطوط الأفقية في الصفحة.
- هو Single Tag.
- هو عنصر فاضي  Empty element .

5

-------- Page 8 (Lecture #5-08.jpg) ---------
Horizontal Line عنصر الخط الأفقي

مثال : يوضح كيف يعمل وسم <hr> .

<html lang="en">
  <head>
    <title>  Horizontal Line </title>
    <meta charset='utf-8'>
  </head>
  <body>
    <h1> WEB PAGE: </h1>
    <p> a single document on a website, usually consisting of HTML
        document and any items that are displayed within that document, such as inline
        images or style sheets. </p>

    <hr>
    <h1> HOME PAGE: </h1>
    <p> The entry page for a website, which can link to additional pages
        on the same website or pages on other sites. </p>

    <hr>
    <h1> WEBSITE: </h1>
    <p> a collection of one or more web pages linked together. </p>
  </body>
</html>

6

-------- Page 9 (Lecture #5-09.jpg) ---------
عملي ( program#16.html )

EXPLORER
HTML LANGUAGE
program#2.html
program#3.html
program#4.html
program#5.html
program#6.html
program#7.html
program#8.html
program#9.html
program#10.html
program#11.html
program#12.html
program#13.html
program#14.html
program#15.html
program#16.html

program#16.html html body
<html lang="en">
<head>
  <title> Horizontal Line </title>
  <meta charset='utf-8'>
</head>
<body>
  <h1> WEB PAGE: </h1>
  <p>  a single document on a website, usually consisting of
       document and any items that are displayed within that
       images or style sheets. </p>
  <hr>
  <h1> HOME PAGE: </h1>
  <p> The entry page for a website, which can link to additi
       on the same website or pages on other sites. </p>
  <hr>
  <h1> WEBSITE: </h1>
  <p> a collection of one or more web pages linked together.
</body>
</html>

OUTLINE
TIMELINE

Ln 6, Col 11  Spaces: 4  UTF-8  CRLF  HTML

-------- Page 10 (Lecture #5-10.jpg) ---------
( program#16.html ) عملي

Horizontal Line

WEB PAGE:

a single document on a website, usually consisting of HTML document and any items that are displayed within that document,
such as inline images or style sheets.

HOME PAGE:

The entry page for a website, which can link to additional pages on the same website or pages on other sites.

WEBSITE:

a collection of one or more web pages linked together.

-------- Page 11 (Lecture #5-11.jpg) ---------
التعليقات Comments

- اعتاد المبرمجون في لغات البرمجة التقليدية على كتابة أسطر توضيحية لا تعالج إذ أنها لا تعتبر جزءاً من الشيفرة، وإنما تستخدم فقط لتذكير المبرمج بأجزاء الشيفرة عندما يعود لتعديلها بعد فترة من الزمن، وهذه الأسطر تعرف بالتعليقات Comments ، ومع أن HTML لغة وصفية إلا أنها توفر آلية لكتابة التعليقات ضمن المستندات، فتقدم الصيغة العامة التالية لكتابة التعليق :

<!-- comment -->

-------- Page 12 (Lecture #5-12.jpg) ---------
Comments التعليقات

: مثال -

<html lang="en">
  <head>
    <title> Comment </title>
    <meta charset='utf-8'>
  </head>
  <body>
    <!-- paragraph -->
    <br/>
    <h3> WEB PAGE: </h3>
    <p> a single document on a website, usually consisting of HTML
        document and any items that are displayed within that document, such as inline
        images or style sheets. </p>
  </body>
</html>

10

-------- Page 13 (Lecture #5-13.jpg) ---------
( program#17.html ) عملي

EXPLORER
HTML LANGUAGE
program#3.html
program#4.html
program#5.html
program#6.html
program#7.html
program#8.html
program#9.html
program#10.html
program#11.html
program#12.html
program#13.html
program#14.html
program#15.html
program#16.html
program#17.html

program#17.html

program#17.html > html > body > p

<html lang="en">
<head>
    <title> Comment </title>
    <meta charset='utf-8'>
</head>
<body>
            <!-- paragraph -->
    <br/>
    <h3> WEB PAGE: </h3>
    <p>      a single document on a website, usually consisting o
             document and any items that are displayed within th
             images or style sheets. </p>
</body>
</html>

OUTLINE
TIMELINE

Ln 11, Col 14  Spaces: 4  UTF-8  CRLF  HTML

-------- Page 14 (Lecture #5-14.jpg) ---------
( program#17.html ) عملي

WEB PAGE:

a single document on a website, usually consisting of HTML document and any items that are displayed within that document,
such as inline images or style sheets.

-------- Page 15 (Lecture #5-15.jpg) ---------
عناصر تنسيق النصوص Text Formatting

- توفر لغة HTML مجموعة من العناصر لتنسيق النصوص:

Tag                         Effect
<strong> أو <b>             bold لجعل النص عريضاً
<small>                     لجعل النص أصغر حجماً
<i> أو <em>                 لجعل النص مائلاً italic
<mark>                      تظليل النص باللون الأصفر
<u> أو <ins>                لوضع خط أسفل النص
<s> أو <del>                شطب النص Delete
<sup>                       لكتابة الكلمة أعلى السطر superscript
<sub>                       لكتابة الكلمة أسفل السطر subscript

- كل عناصر formatting هي عناصر inline.

13

-------- Page 16 (Lecture #5-16.jpg) ---------
عناصر تنسيق النصوص Text Formatting

- مثال : يوضح عمل عناصر تنسيق النصوص Text Formatting.

<html lang="en">
  <head>
    <title>  Text Formatting  </title>
    <meta charset='utf-8'>
  </head>
  <body>
    <!--  Text formatting  -->

    <br/>
    <h3> WEB PAGE: </h3>
    <p>  a single document on <b>a website</b>. </p>
    <p>  a single document on <small>a website</small>. </p>
    <p>  a single document on <mark>a website</mark>. </p>
    <p>  a single document on <i>a website</i>. </p>
    <p>  a single document on <u>a website</u>. </p>
    <p>  a single document on <s>a website</s>. </p>
    <p>  a single document on <sup>a website</sup>. </p>
    <p>  a single document on <sub>a website</sub>. </p>
  </body>
</html>

14

-------- Page 17 (Lecture #5-17.jpg) ---------
عملي ( program#18.html )

EXPLORER
HTML LANGUAGE
program#4.html
program#5.html
program#6.html
program#7.html
program#8.html
program#9.html
program#10.html
program#11.html
program#12.html
program#13.html
program#14.html
program#15.html
program#16.html
program#17.html
program#18.html

OUTLINE
TIMELINE

program#18.html
HTML language

<html lang="en">
<head>
    <title>   Text Formatting   </title>
    <meta charset='utf-8'>
</head>
<body>
        <!--   Text formatting   -->
    <br/>
    <h3> WEB PAGE: </h3>
    <p>      a single document on <b>a website</b>. </p>
    <p>      a single document on <small>a website</small>. </p>
    <p>      a single document on <mark>a website</mark>. </p>
    <p>      a single document on <i>a website</i>. </p>
    <p>      a single document on <u>a website</u>. </p>
    <p>      a single document on <s>a website</s>. </p>
    <p>      a single document on <sup>a website</sup>. </p>
    <p>      a single document on <sub>a website</sub>. </p>
</body>
</html>

Ln 16, Col 17   Spaces: 4   UTF-8   CRLF   HTML

15

-------- Page 18 (Lecture #5-18.jpg) ---------
( program#18.html ) عملي

WEB PAGE:

a single document on a website.

a single document on a website.

a single document on a website.

a single document on a website.

a single document on a website.

a single document on a website.

a single document on a website.

a single document on a website.

-------- Page 19 (Lecture #5-19.jpg) ---------
Text Formatting عناصر تنسيق النصوص

الإختلاف بين tags :

<i>
Italic text
لمجرد الشكل

<em>
Emphasize text
– حكمة
– الجمل المقتبسة
– عبارة من لغة مختلفة

<b>
Bold text
لمجرد الشكل

<strong>
Important text
للعِبارات المهمة

<sub>
Subscript text
تستخدم في الرموز الكيميائية

<sup>
Superscript text
تستخدم في المعادلات الرياضية لتمثيل الأُس

<u>
Misspelled word
لمجرد الشكل
أو لتحديد أن الكلمة بها خطأ

<ins>
inserted text
لإدخال نص جديد
(كلام مضاف)

17

-------- Page 20 (Lecture #5-20.jpg) ---------
Thank you