html
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
<!-- |< >|< |< -->
<!-- Expand smartphone -->
<!DOCTYPE html>
<html>
<head>
<title>
HTML5 page structure
Структура страницы HTML5
</title>
<meta name="viewport" content= "width=device-width, initial-scale=1">
</head>
<body>
<header>
<h3>header</h3>
<!--Company symbols (logo, etc.)-->
<p>Символика компании (логотип и т.п.)</p>
</header>
<nav>
<h3>nav</h3>
<!--Website navigation section-->
<p>Секция навигации веб-сайта</p>
</nav>
<article>
<h3>article</h3>
<p><!--Web page main content-->
Основной контент веб-страницы
</p>
<section>
Enter to Rename, Shift+Enter to Preview
css
css
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
/*
Общие стили, сброс стилей браузера по умолчанию:
General styles, reset browser default styles:
*/
*, *:after, *:before {
box-sizing: border-box;
margin: 0;
transition: .5s ease-in-out; /* - ...добавляем плавность переходов для всех элементов страницы.
- ... add smooth transitions for all page elements.
*/
}
body,header,nav,
article,section,
aside,footer{
border: 2px solid green;
margin: 2px;
text-align: center;
background-color: #5d5;
}
header {
padding: 10px;
position: sticky;
top: 0;
}
nav {
padding: 5px;
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run