-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (91 loc) · 5.94 KB
/
index.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
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Semantic Elements</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Noto+Serif&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<header>
<h3>HTML Semantic Elements</h3>
</header>
<article>
<h1>HTML5 Семантичні елементи</h1>
<p>Семантичний елемент чітко описує його значення як для браузера, так і для розробника.</p>
<p>Приклади не <strong>семантичних</strong> елементів: <div> і <span> – нічого не говорить про
його вміст.</p>
<p>Приклади <strong>семантичних</strong> елементів: <form>, <table> і <article> – чітко
визначає його
зміст.</p>
<section>
<h2>Підтримка браузерів</h2>
<img src="./img/1.png" alt="browsers">
<p>Семантичні елементи HTML5 підтримуються у всіх сучасних браузерах.</p>
<p>Крім того, ви можете "навчити" старих браузерів, як обробляти "невідомі елементи".</p>
<p>Прочитайте про це в <a href="https://www.google.com/" target="_blank">підтримці браузера HTML5.</a></p>
</section>
<section>
<h2>Нові семантичні елементи в HTML5</h2>
<p>HTML5 пропонує нові семантичні елементи для визначення різних частин веб-сторінки:</p>
<ul>
<li><a href="#section_element"><section></a></li>
<li><a href="#article_element"><article></a></li>
<li><a href="#header_element"><header></a></li>
<li><a href="#footer_element"><footer></a></li>
</ul>
</section>
<section id="section_element">
<h2>HTML5 <section> елемент</h2>
<p>Елемент <section> визначає розділ в документі.</p>
<p>Згідно з документацією в3к'с HTML5: "розділ представляє собою тематичну угруповання контенту, зазвичай з
заголовком".</p>
<p>Домашня сторінка зазвичай може бути розділена на розділи для ознайомлення, змісту і контактної
інформації.</p>
<h4>Приклад:</h4>
<img src="./img/2.jpg" alt="example">
</section>
<section id="article_element">
<h2>HTML5 <article> елемент</h2>
<p>Елемент <article> визначає незалежний, автономний вміст.</p>
<p>Стаття повинна мати сенс самостійно, і вона повинна мати можливість читати його незалежно від іншої
частини веб-сайту.</p>
<p>Приклади того, де можна використовувати елемент <article>:</p>
<ul>
<li>Повідомлення на форумі</li>
<li>Блог</li>
<li>Газетна стаття</li>
</ul>
<h4>Приклад:</h4>
<img src="./img/3.jpg" alt="example">
</section>
<section id="header_element">
<h2>HTML5 <header> елемент</h2>
<p>Елемент <header> задає заголовок для документа або розділу.</p>
<p>Елемент <header> повинен використовуватися в якості контейнера для вступного змісту.</p>
<p>В одному документі може бути кілька елементів <header>.</p>
<p>У наступному прикладі визначається заголовок для статті:</p>
<h4>Приклад:</h4>
<img src="./img/4.jpg" alt="example">
</section>
<section id="footer_element">
<h2>HTML5 <footer> елемент</h2>
<p>Елемент <footer> вказує нижній колонтитул для документа або розділу.
<p>Нижній колонтитул зазвичай містить автора документа, інформацію про авторське право, посилання на умови
використання, контактні дані і т.д.</p>
<p>В одному документі може бути кілька елементів <footer>.</p>
<h4>Приклад:</h4>
<img src="./img/5.jpg" alt="example">
</section>
</article>
<iframe width="560" height="315" src="https://www.youtube.com/embed/dEBVe8Ij7JU" title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
<footer>© All rights reserved by Alyona Nabok</footer>
</body>
</html>