-
Notifications
You must be signed in to change notification settings - Fork 1
/
4.html
892 lines (813 loc) · 39.9 KB
/
4.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
<!DOCTYPE html>
<html lang="en">
<head>
<title>Разметка текста</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#007BFF">
<link rel="stylesheet" href="node_modules/@shower/material/styles/styles.css">
<link rel="stylesheet" href="styles/all_styles.css">
<link rel="shortcut icon" type="image/png" href="pictures/general/narfu_icon.png">
<style>
ul .block-p {
padding: 15px 15px 15px 30px;
margin-bottom: 10px;
}
.browser-view li {
padding-left: 30px;
min-width: 250px;
}
.browser-view .non-list li {
padding-left: 10px;
margin-left: 30px;
}
.browser-view ol,
.browser-view ul {
margin-bottom: 0;
}
.slide .non-list > li::before {
content: "";
}
dt {
color: #6a2cce;
}
#first-quote:before,
#first-quote:after {
content: '"';
}
</style>
</head>
<body class="shower list">
<header class="caption">
<h1>Разметка текста</h1>
<p><a href="index.html">Web-технологии</a></p>
</header>
<section class="slide narfu_official" id="cover">
<h2>Разметка <br>текста</h2>
<p>Лекция №2.2</p>
</section>
<!-- Конец титульного слайда -->
<!-- Основные слайды -->
<section class="slide narfu">
<h2>Виды списков</h2>
<div class="columns three">
<div>
<p>
<ins>Неупорядоченный</ins>
</p>
<!-- <p>Перечень однотипных элементов, порядок которых важен.</p>-->
<ul>
<li>Элемент</li>
<li>Элемент</li>
<li>Элемент</li>
</ul>
</div>
<div>
<p>
<ins>Упорядоченный</ins>
</p>
<!-- <p>Список элементов, где важен порядок и необходима нумерация.</p>-->
<ol>
<li>Первый элемент</li>
<li>Второй элемент</li>
<li>Третий элемент</li>
</ol>
</div>
<div>
<p>
<ins>Список определений</ins>
</p>
<!-- <p>Перечень терминов, где в пару каждому из них ставится расшифровка.</p>-->
<dl>
<dt style="color: black">Термин</dt>
<dd>Определение</dd>
<dt style="color: black">Термин</dt>
<dd>Определение</dd>
</dl>
</div>
</div>
</section>
<section class="slide narfu">
<img src="pictures/4/ul.webp" alt="" class="cover w">
</section>
<section class="slide narfu">
<h2>Неупорядоченный список</h2>
<p>Для его вставки на страницу используется тег <code><ul></code> (unordered list). Этот тег является
своеобразной обёрткой, указывающей браузеру на начало и конец списка. </p>
<p>Сами пункты списка должны верстаться при помощи тега <code><li></code>(list item). Таким образом, полностью
список верстается с использованием обоих тегов.</p>
</section>
<section class="slide narfu">
<h2>Неупорядоченный список</h2>
<div class="columns two">
<pre>
<code><ul></code>
<code> <li>Покормить кота</li></code>
<code> <li>Продолжать работать</li></code>
<code></ul></code>
</pre>
<ul class="browser-view" style="padding-left: 40px">
<li>Покормить кота</li>
<li>Продолжать работать</li>
</ul>
</div>
</section>
<section class="slide narfu">
<h2>Теги внутри списка</h2>
<pre>
<code><ul></code>
<code><li>Покормить кота</li></code>
<code> <li> <span class="comment"><!-- открывающий тег элемента списка --></span></code>
<code> <p>Продолжать работать</p></code>
<code> <p>Или</p></code>
<code> <p>Пойти погулять</p></code>
<code> </li> <span class="comment"><!-- закрывающий тег элемента списка --></span></code>
<code></ul></code>
</pre>
</section>
<section class="slide narfu">
<div class="browser-view">
<ul>
<li>Покормить кота</li>
<li>
<p class="block-p">Продолжать работать</p>
<p class="block-p">Или</p>
<p class="block-p">Пойти погулять</p>
</li>
</ul>
</div>
</section>
<section class="slide narfu">
<h2>Виды маркеров</h2>
<p>Атрибут <code>type</code> является устаревшим!</p>
<div class="columns two">
<pre>
<code><ul type="<mark> </mark>"></code>
<code> <li></li></code>
<code> <li></li></code>
<code> <li></li></code>
<code> <li></li></code>
<code></ul></code>
</pre>
<div class="browser-view">
<ul class="non-list">
<li type="disc">Круги</li>
<li type="circle">Окружности</li>
<li type="square">Квадраты</li>
<li type="none">Без маркера</li>
</ul>
</div>
</div>
</section>
<section class="slide narfu">
<h2>Упорядоченный список</h2>
<p>В том случае, если порядок элементов в списке важен, стоит использовать тег <code><ol></code>(ordered
list).</p>
<div class="columns two">
<pre>
<code><ol></code>
<code> <li>Avatar</li></code>
<code> <li>Avengers: Endgame</li></code>
<code> <li>Avengers: Infinity War</li></code>
<code></ol></code>
</pre>
<div class="browser-view">
<ol>
<li>Avatar</li>
<li>Avengers: Endgame</li>
<li>Avengers: Infinity War</li>
</ol>
</div>
</div>
</section>
<section class="slide narfu">
<h2>Тип нумерации</h2>
<div class="columns two">
<ul>
<li><code>a</code> для строчных букв;</li>
<li><code>A</code> для заглавных букв;</li>
<li><code>i</code> для строчной Римской нумерации;</li>
<li><code>I</code> для заглавной Римской нумерации;</li>
<li><code>1</code> для цифр (по умолчанию).</li>
</ul>
<div class="browser-view">
<ol class="non-list">
<li type="a">Строчные буквы</li>
<li type="A">Заглавные буквы</li>
<li type="i">Строчные Римские</li>
<li type="I">Заглавные Римские</li>
<li type="1">Цифры</li>
</ol>
</div>
</div>
</section>
<section class="slide narfu">
<h2>Управление порядком элементов</h2>
<div class="columns two">
<pre style="margin-top: 50px">
<code><ol <mark>start="8"</mark> type="i"></code>
<code> <li>Восьмой элемент</li></code>
<code> <li>Девятый элемент</li></code>
<code> <li>Десятый элемент</li></code>
<code></ol></code>
</pre>
<div class="browser-view" style="margin-top: 50px">
<ol start="8" class="non-list">
<li type="i">Восьмой элемент</li>
<li type="i">Девятый элемент</li>
<li type="i">Десятый элемент</li>
</ol>
</div>
</div>
</section>
<section class="slide narfu">
<h2>Обратный порядок элементов</h2>
<div class="columns two">
<pre style="margin-top: 50px">
<code><ol <mark>reversed</mark> ></code>
<code> <li>Третий элемент</li></code>
<code> <li>Второй элемент</li></code>
<code> <li>Первый элемент</li></code>
<code></ol></code>
</pre>
<div class="browser-view" style="margin-top: 50px">
<ol reversed class="non-list">
<li type="1">Третий элемент</li>
<li type="1">Второй элемент</li>
<li type="1">Первый элемент</li>
</ol>
</div>
</div>
</section>
<section class="slide narfu">
<h2>Вложенные списки</h2>
<div class="columns two">
<pre style="margin-top: 30px; font-size: 18px">
<code><ol></code>
<code><li>Первая часть</code>
<code> <mark><ul></mark></code>
<code> <li>Глава первая</li></code>
<code> <li>Глава вторая</li></code>
<code> <mark></ul></mark></code>
<code> </li></code>
<code> <li>Вторая часть</li></code>
<code></ol></code>
</pre>
<div class="browser-view" style="margin-top: 30px; font-size: 18px">
<ol>
<li>Первая часть
<ul>
<li>Глава первая</li>
<li>Глава вторая</li>
</ul>
</li>
<li>Вторая часть</li>
</ol>
</div>
</div>
</section>
<section class="slide narfu">
<h2>Список описаний</h2>
<p>Создаётся с помощью трёх тегов:</p>
<ul>
<li><code><dl></code> (сокращение от «description list») обозначает сам список описаний;</li>
<li><code><dt></code> (сокращение от «description term») обозначает термин;</li>
<li><code><dd></code> (сокращение от «description definition») обозначает описание или определение.</li>
</ul>
</section>
<section class="slide narfu">
<h2>Один термин — одно определение</h2>
<pre>
<code><dl></code>
<code> <dt>Blink</dt></code>
<code> <dd>движок в браузерах Chrome, Edge, Opera</dd></code>
<code> <dt>Gecko</dt></code>
<code> <dd>движок в браузере Firefox</dd></code>
<code> <dt>WebKit</dt></code>
<code> <dd>движок в браузере Apple Safari</dd></code>
<code></dl></code>
</pre>
</section>
<section class="slide narfu">
<div class="browser-view">
<dl>
<dt>Blink</dt>
<dd>движок в браузерах Chrome, Edge, Opera</dd>
<dt>Gecko</dt>
<dd>движок в браузере Firefox</dd>
<dt>WebKit</dt>
<dd>движок в браузере Apple Safari</dd>
</dl>
</div>
</section>
<section class="slide narfu">
<h2>Несколько терминов с общим определением</h2>
<pre style="font-size: 18px">
<code><dl></code>
<code> <dt>Firefox</dt></code>
<code> <dt>Mozilla Firefox</dt></code>
<code> <dt>FF</dt></code>
<code> <dd></code>
<code> свободный браузер на движке Gecko, разработкой и </code>
<code> распространением которого занимается Mozilla Corporation </code>
<code> </dd></code>
<code></dl></code>
</pre>
</section>
<section class="slide narfu">
<div class="browser-view">
<dl>
<dt>Firefox</dt>
<dt>Mozilla Firefox</dt>
<dt>FF</dt>
<dd>
свободный браузер на движке Gecko,
разработкой и распространением которого
занимается Mozilla Corporation
</dd>
</dl>
</div>
</section>
<section class="slide narfu">
<h2>Термин с несколькими определениями</h2>
<pre>
<code><dl></code>
<code><dt>Chrome</dt></code>
<code> <dd>Браузер, разрабатываемый компанией Google.</dd></code>
<code> <dd>Элемент 6-й группы периода периодической системы.</dd></code>
<code></dl></code>
</pre>
</section>
<section class="slide narfu">
<div class="browser-view">
<dl>
<dt>Chrome</dt>
<dd>Браузер, разрабатываемый компанией Google.</dd>
<dd>Элемент 6-й группы 4-го периода периодической системы.</dd>
</dl>
</div>
</section>
<section class="slide narfu">
<h2>Отображение метаданных (пар «ключ-значение»)</h2>
<pre style="font-size: 18px">
<code><dl></code>
<code> <dt>Имя</dt></code>
<code><dd>Гарри Джеймс Поттер</dd></code>
<code> <dt>День рождения</dt></code>
<code> <dd>31 июля 1980 года</dd></code>
<code> <dt>Особые приметы</dt></code>
<code> <dd>носит круглые очки; шрам в виде молнии на лбу.</dd></code>
<code></dl></code>
</pre>
</section>
<section class="slide narfu">
<div class="browser-view">
<dl>
<dt>Имя</dt>
<dd>Гарри Джеймс Поттер</dd>
<dt>День рождения</dt>
<dd>31 июля 1980 года</dd>
<dt>Особые приметы</dt>
<dd>носит круглые очки; шрам в виде молнии на лбу.</dd>
</dl>
</div>
</section>
<section class="slide narfu">
<h2>Важен каждый символ</h2>
<div class="columns three">
<img src="pictures/4/bird-1.jpeg" alt="">
<img src="pictures/4/bird-3.png" alt="" width="250">
<img src="pictures/4/bird-2.png" alt="" width="250">
</div>
</section>
<section class="slide narfu">
<h2>Преформатированный текст</h2>
<p>С помощью тега <code><pre></code> (сокращение от «preformatted text») можно заставить браузер отображать
текст из HTML-документа без изменений. </p>
<div class="browser-view">
<img src="pictures/4/ascii-art.png" alt="" style="margin: 0 20%">
</div>
</section>
<section class="slide narfu">
<h2>Преформатированный текст</h2>
<pre>
<code><pre></code>
<code> user_input = input('Как дела?')</code>
<code> if user_input == 'Хорошо':</code>
<code> print('И у меня')</code>
<code> else:</code>
<code> print('А у меня хорошо')</code>
<code></pre></code>
</pre>
</section>
<section class="slide narfu">
<h2>Преформатированный текст</h2>
<div class="info info--frame-heading info--frame-heading--python-code info--theme-color">
<pre>
<code> user_input = input('Как дела?')
if user_input == 'Хорошо':
print('И у меня')
else:
print('А у меня хорошо')</code>
</pre>
</div>
</section>
<section class="slide narfu">
<h2>Символы-мнемоники</h2>
<p>Мнемоники — это особые строки, которые начинаются с амперсанда (<code>&</code>) и заканчиваются точкой с запятой
(<code>;</code>).</p>
<p>Например, знак меньше на страницу можно вставить мнемоникой <code>&l<span>t;</span></code> (less than), а знак
больше мнемоникой <code>&g<span>t;</span></code> (greater than).</p>
</section>
<section class="slide narfu">
<h2>Символы-мнемоники</h2>
<div class="browser-view">
<a href="https://dev.w3.org/html5/html-author/charref" style="background: none">
<img src="pictures/4/mnemonic-list.png" alt="" style="width: 650px; margin: 0 calc((100% - 650px) / 2)">
</a>
</div>
</section>
<section class="slide narfu">
<h2>Вставка кода</h2>
<p>Для обозначения фрагментов кода есть специальный тег – <code><code></code>.</p>
<pre>
<code><code>Если идет дождь –&g<span>t;</span> возьми зонт</code></code>
</pre>
<hr>
<div class="next">
<p>Обычно браузеры отображают текст внутри <code><code></code> моноширинным шрифтом.</p>
<code>Если идет дождь –> возьми зонт</code>
</div>
</section>
<section class="slide narfu">
<h2>Комбинирование <pre> и <code></h2>
<pre>
<code><pre><code></code>
<code>if (a > b) { <span class="comment">// Пример кода</span> </code>
<code> console.log('Hello!'); <span class="comment">// на языке JavaScript</span> </code>
<code>}</code>
<code></code></pre></code>
</pre>
</section>
<section class="slide narfu">
<h2>Комбинирование <pre> и <code></h2>
<div class="info info--frame-heading info--frame-heading--js-code info--theme-color">
<pre>
<code>
if (a > b) { <span class="comment">// Пример кода</span>
console.log('Hello!'); <span class="comment">// на языке JavaScript</span>
}
</code>
</pre>
</div>
</section>
<section class="slide narfu">
<h2>Встроенная цитата</h2>
<pre>
<code><p></code>
<code> Я сейчас очень зол, и как говорил Шелдон Купер:</code>
<code> <mark><q></mark></code>
<code> В мире не хватит ромашкового чая, </code>
<code> чтобы успокоить ярость в моей груди!</code>
<code> <mark></q></mark></code>
<code></p></code>
</pre>
</section>
<section class="slide narfu">
<h2>Встроенная цитата</h2>
<div class="browser-view">
<p>
Я сейчас очень зол, и как говорил Шелдон Купер:
<q id="first-quote">
В мире не хватит ромашкового чая,
чтобы успокоить ярость в моей груди!
</q>
</p>
</div>
<p></p>
<p class="next">В браузере цитата внутри предложения будет выделяться: <br>тег добавляет кавычки вокруг цитируемой
части предложения.</p>
</section>
<section class="slide narfu">
<h2>Атрибут cite</h2>
<pre>
<code><p></code>
<code> Я сейчас очень зол, и как говорил Шелдон Купер:</code>
<code> <q <mark>cite="https://www.netflix.com/ru-en/title/70143830"</mark>></code>
<code> В мире не хватит ромашкового чая, </code>
<code> чтобы успокоить ярость в моей груди!</code>
<code> </q></code>
<code></p></code>
</pre>
</section>
<section class="slide narfu">
<h2>Самостоятельный тег <cite></h2>
Тег <code><cite></code> делает написание текста внутри курсивным. Этот тег может быть в том числе и
самостоятельным, не привязанным к цитате:
<pre>
<code><p>Какой доктор ваш любимый доктор</code>
<code> (в сериале <mark><cite></mark>Доктор Кто<mark></cite></mark>)?</p></code>
</pre>
<p>Какой доктор ваш любимый (в сериале <cite>Доктор Кто</cite>)?</p>
</section>
<section class="slide narfu">
<h2>Цитата на другом языке</h2>
<p>Можно у тега <code><q></code> указать атрибут <code>lang</code> со значением языка цитаты:</p>
<pre>
<code><p></code>
<code> В Японии принято обозначать звук, произносимый кошкой как</code>
<code> <q <mark>lang="ja-latn"</mark>>nyan</q></code>
<code></p></code>
</pre>
</section>
<section class="slide narfu">
<h2>Цитата на другом языке</h2>
<div class="browser-view" style="text-align: center">
<p>
В Японии принято обозначать звук, произносимый кошкой как
<q lang="ja-latn">nyan</q>
</p>
</div>
<p>Кавычки в этом примере отличаются от стандартных, они соответствуют тем кавычкам, которые ставятся в <br>латинизированном
японском тексте.</p>
</section>
<section class="slide narfu">
<h2>Отдельная цитата</h2>
<pre>
<code><mark><blockquote></mark></code>
<code> Ножницы режут бумагу, бумага заворачивает камень, </code>
<code> камень давит ящерицу, ящерица травит Спока, </code>
<code> Спок ломает ножницы, ножницы отрезают голову ящерице, </code>
<code> ящерица ест бумагу, бумага подставляет Спока, </code>
<code> Спок испаряет камень, и, как обычно,</code>
<code> камень разбивает ножницы.</code>
<code><mark></blockquote></mark></code>
</pre>
</section>
<section class="slide narfu">
<h2>Отдельная цитата</h2>
<blockquote>
Ножницы режут бумагу, бумага заворачивает камень,<br>
камень давит ящерицу, ящерица травит Спока,<br>
Спок ломает ножницы, ножницы отрезают голову ящерице,<br>
ящерица ест бумагу, бумага подставляет Спока,<br>
Спок испаряет камень, и, как обычно,<br>
камень разбивает ножницы.
</blockquote>
</section>
<section class="slide narfu">
<h2>Отдельная цитата</h2>
<pre style="font-size: 19px">
<code><blockquote></code>
<code> <p></code>
<code> Я никогда не понимал эту необходимость делить свою жизнь </code>
<code> с кем-то еще...</code>
<code> </p></code>
<code> <mark class="important"><footer></mark></code>
<code> — Шелдон Купер, </code>
<code class="mark"> <cite>Речь на свадьбе Говарда и Бернадетт</cite></code>
<code> <mark class="important"></footer></mark></code>
<code></blockquote></code>
</pre>
</section>
<section class="slide narfu">
<h2>Отдельная цитата</h2>
<blockquote>
<p>
Я никогда не понимал эту необходимость делить свою жизнь
с кем-то еще. Возможно, потому что я сам по себе совершенен.
Я хочу пожелать вам, чтобы вы находили столько же счастья
друг в друге, сколько я нахожу в самом себе.
</p>
<footer>
— Шелдон Купер,
<cite>Речь на свадьбе Говарда и Бернадетт</cite>
</footer>
</blockquote>
</section>
<section class="slide narfu">
<h2>Продвинутая верстка кода</h2>
<p>Существует еще несколько элементов для маркировки компьютерного кода с использованием HTML:</p>
<ul>
<li><code><var></code> - для маркировки имён переменных;</li>
<li><code><kbd></code> - для маркировки вывода компьютерной программы, а также ввода клавиатуры (и других
типов), введённого в компьютер;
</li>
<li><code><samp></code> - для маркировки вывода компьютерной программы.</li>
</ul>
</section>
<section class="slide narfu clear">
<div class="browser-view" style="font-size: 16px">
<pre>
<code>var para = document.querySelector('p');
para.onclick = function() {
alert('Owww, stop poking me!');
}</code>
</pre>
<p>Не стоит использовать такие теги, как <code><font></code> и <code><center></code>.</p>
<p>В приведенном выше примере кода на JavaScript, <var>para</var> представляет абзац.</p>
<p>Выделите весь текст с помощью сочетания клавиш <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> + <kbd>A</kbd>.</p>
<pre>
$ <kbd style="background-color: white">ping mozilla.org</kbd><br>
<samp style="background-color: white">PING mozilla.org (63.245.215.20): 56 data bytes
64 bytes from 63.245.215.20: icmp_seq=0 ttl=40 time=158.233 ms</samp>
</pre>
</div>
</section>
<section class="slide">
<img src="pictures/4/lyrics.png" alt="lyrics" class="cover w">
</section>
<section class="slide narfu">
<h2>Верстка стихов</h2>
<p>Варианты:</p>
<ol>
<li><code><p></code> – идеально подходит для выделения строфы, а нужно добавить переносы <i>внутрь</i> строф;</li>
<li><code><pre></code> – подходит, но нужно сохранить <i>только</i> переносы строк;</li>
<li><code><br></code> (сокращение от «line break») – <strong>идеальный вариант</strong>.</li>
</ol>
</section>
<section class="slide narfu">
<pre>
<code><p> </code>
<code> Муха села на варенье <br> </code>
<code> Вот и всё стихотворенье...</code>
<code></p> </code>
</pre>
<div class="browser-view next" style="padding-left: 270px">
<p>
Муха села на варенье <br>
Вот и всё стихотворенье...
</p>
</div>
</section>
<section class="slide narfu">
<h2>Верстка текста с формулами</h2>
<ul>
<li><code><sup></code> - для маленького текста сверху</li>
<li><code><sub></code> - для маленького текста снизу</li>
</ul>
<pre>
<code><p>Я просыпаюсь в 6<sup>35</sup> утра.</p></code>
<code><p>Химическая формула кофеина: </code>
<code> C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>.</p></code>
<code><p>Если x<sup>2</sup> равно 9, x должен равняться 3 или -3.</p></code>
</pre>
</section>
<section class="slide narfu">
<h2>Верстка текста с формулами</h2>
<div class="browser-view">
<p>Я просыпаюсь в 6<sup>35</sup> утра.</p>
<p>Химическая формула кофеина: C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub>.</p>
<p>Если x<sup>2</sup> равно 9, x должен равняться 3 или -3.</p>
</div>
</section>
<section class="slide narfu">
<h2>Аббревиатуры и сокращения</h2>
<p>Используется тег <code><abbr></code> и обеспечивает расшифровку с помощью атрибута <code>title</code>.</p>
<pre>
<code><p>Мы используем </code>
<code> <abbr title="Hypertext Markup Language">HTML</abbr></code>
<code> для структурирования наших веб-документов.</p></code>
</pre>
</section>
<section class="slide narfu">
<h2>Аббревиатуры и сокращения</h2>
<div class="browser-view">
<p>Мы используем <abbr title="Hypertext Markup Language">HTML</abbr> для структурирования наших веб-документов.</p>
<p>Я думаю, <abbr title="Почтенный">Почт.</abbr> Грин сделал это на кухне с бензопилой.</p>
</div>
</section>
<section class="slide">
<img src="pictures/4/time.png" alt="" class="cover w">
</section>
<section class="slide narfu">
<h2>Дата и время</h2>
<p>Для людей:</p>
<div class="columns three">
<ul>
<li>20/01/20</li>
<li>01/20/20</li>
</ul>
<ul>
<li>20 Января 2020</li>
<li>20-ое Января 2020</li>
</ul>
<ul>
<li>20 янв. 2к20</li>
<li>2020年1月20日</li>
</ul>
</div>
<hr>
<p>Для компьютера:</p>
<code><time datetime="2020-01-20">20 Января 2020</time></code>
</section>
<section class="slide narfu">
<h2>Выделение изменений</h2>
<p>Тег <code><del></code> выделяет текст, который был удалён в новой версии документа. В браузере этот текст перечёркивается.</p>
<p>Тег <code><ins></code> выделяет текст, который был добавлен в новой версии документа. В браузере этот текст подчёркивается.</p>
<p>Оба тега имеют атрибут <code>datetime</code>. C его помощью можно указать, когда была внесена та или иная правка.</p>
</section>
<section class="slide narfu">
<h2>Выделение изменений</h2>
<pre>
<code><ul></code>
<code> <li>Покормить кота</li></code>
<code> <li><del datetime="2009-10-11T01:25-07:00">Погулять</del></li></code>
<code> <li><del datetime="2009-10-10T23:38-07:00">Поспать</del></li></code>
<code> <li><ins>Купить продукты на следующую неделю.</ins></li></code>
<code></ul></code>
</pre>
</section>
<section class="slide narfu">
<h2>Выделение изменений</h2>
<div class="browser-view">
<ul>
<li>Покормить кота</li>
<li><del datetime="2009-10-11T01:25-07:00">Погулять</del></li>
<li><del datetime="2009-10-10T23:38-07:00">Поспать</del></li>
<li><ins>Купить продукты на следующую неделю.</ins></li>
</ul>
</div>
</section>
<section class="slide narfu">
<h2>Акцентирование внимания</h2>
<p>Тег <code><em></code> (сокращение от «emphasis») определяет текст, на который сделан особый акцент, меняющий смысл предложения.</p>
<pre style="font-size: smaller">
<code>Казнить нельзя, <em>помиловать</em>!</code>
</pre>
<div class="browser-view">
Казнить нельзя, <em>помиловать</em>!
</div>
</section>
<section class="slide narfu">
<h2>Акцентирование внимания</h2>
<p>Тег <code><i></code> (сокращение от «italic») применяется для обозначения текста, который отличается от окружающего текста, но не является более важным.</p>
<pre style="font-size: smaller">
<code>Он взглянул в окно и подумал — <i>такого просто не может быть</i>!</code>
</pre>
<div class="browser-view">
Он взглянул в окно и подумал — <i>такого просто не может быть</i>!
</div>
</section>
<section class="slide narfu">
<h2>Важность и выделение</h2>
<p>Тег <code><strong></code> указывает на важность отмеченного текста. Он может использоваться для выделения предупреждений или части документа, которую пользователь должен увидеть раньше остального.</p>
<pre>
<code><strong>Внимание!</strong> Это место опасно. </code>
<code><strong>Вы можете упасть в пропасть</strong>,</code>
<code> если подойдёте близко к краю.</code>
</pre>
</section>
<section class="slide narfu">
<h2>Важность и выделение</h2>
<p>Тег <code><b></code> предназначен для выделения текста с целью привлечения к нему внимания, но без придания ему особой важности. Используется только в случае, когда остальные теги выделения не подходят. </p>
<pre>
<code>Вы входите в небольшую комнату. </code>
<code>Ваш <b>меч</b> загорается ярче. </code>
<code><b>Крыса</b> стремительно пробегает вдоль стены.</code>
</pre>
</section>
<section class="slide narfu">
<h2>Скринридеры и выделение</h2>
<p>Скринридер (программа для спелых людей, озвучивающая текста на экране) при чтении сайта будет выделять слова с тегом <code><strong></code> интонационно, в отличие от простого выделения с помощью <code><b></code>.
<p>То же самое касается тегов <code><em></code> и <code><i></code>. Тег <code><em></code> «читалка» будет выделять интонацией.</p>
</section>
<section class="slide narfu">
<h2>Контейнеры и стилизация</h2>
<p>Теги <code><div></code> (сокращение от «division») и <code><span></code> отлично подходят для визуальной группировки других элементов.</p>
<p>Теги <code><div></code> и <code><span></code> не имеют никакого оформления по умолчанию и их почти всегда используют вместе с атрибутом <code>class</code>, чтобы легко добавлять им собственные стили.</p>
</section>
<section class="slide narfu">
<h2>Контейнеры и стилизация</h2>
<pre>
<code><article></code>
<code class="mark"> <div class="highlight"></code>
<code class="mark"> <p>Мы два красивых выделенных абзаца.</p></code>
<code class="mark"> <p>С жёлтеньким фоном!</p></code>
<code class="mark"> </div></code>
<code> <p>Текст, в котором <mark class="important"><span>синяя фраза</span></mark>.</p></code>
<code></article></code>
</pre>
</section>
<section class="slide">
<img src="pictures/4/div.png" alt="" class="cover w">
</section>
<!-- Конец основных слайдов -->
<!-- Подвал презентации -->
<section class="slide" id="see-more">
<h2 class="shout">
<a href="index.html">Все презентации<br>на GitHub Pages</a>
</h2>
</section>
<footer class="badge">
<a href="https://github.com/LoveSolaristics/shower-presentation.git">
<svg width="81" height="79" viewBox="0 0 81 79" aria-hidden="true">
<path d="M40.5 0a40.5 40.5 0 0 0-12.8 78.93c2 .37 2.76-.88 2.76-2s0-3.51-.05-6.89c-11.27 2.45-13.64-5.43-13.64-5.43-1.84-4.68-4.5-5.92-4.5-5.92-3.68-2.51.28-2.46.28-2.46 4.06.29 6.2 4.17 6.2 4.17 3.61 6.19 9.48 4.4 11.79 3.37a8.65 8.65 0 0 1 2.57-5.41c-9-1-18.45-4.5-18.45-20a15.65 15.65 0 0 1 4.17-10.87 14.57 14.57 0 0 1 .4-10.72s3.4-1.09 11.14 4.15a38.39 38.39 0 0 1 20.28 0c7.73-5.24 11.13-4.15 11.13-4.15a14.55 14.55 0 0 1 .4 10.72 15.63 15.63 0 0 1 4.16 10.87c0 15.56-9.47 19-18.49 20 1.45 1.25 2.75 3.72 2.75 7.5v11.11c0 1.08.73 2.34 2.78 1.95A40.51 40.51 0 0 0 40.5 0z"></path>
</svg>
Репозиторий<br>на GitHub
</a>
</footer>
<div class="progress"></div>
<script src="node_modules/@shower/core/dist/shower.js"></script>
</body>
</html>