forked from kontur-web-courses/hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (34 loc) · 1.82 KB
/
Copy pathindex.html
File metadata and controls
39 lines (34 loc) · 1.82 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World!</title>
<!-- #1 Тут нужно подключить styles.css -->
<!-- Как это сделать посмотрите тут - https://developer.mozilla.org/ru/docs/Web/HTML/Element/link -->
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<div class="card">
<h1 class="card__title">Привет, {username}</h1>
<p class="card__text">Тебе нужно:</p>
<ul class="card__list">
<li class="card__list-item">
<label><span>Откыть index.html</span> <input id="html" type="checkbox" value="HTML"></label>
</li>
<li class="card__list-item">
<label>Подключить styles.css <input id="css" type="checkbox" value="CSS"></label>
</li>
<li class="card__list-item">
<label>Подключить index.js <input id="js" type="checkbox" value="JS"></label>
</li>
</ul>
<p id="output" class="card__text"></p>
<!-- #2 Тут нужно подключить index.js -->
<!-- Как это сделать посмотрите тут - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#examples -->
<!-- А ещё обратите внимание, где подключается скрипт, почему не внутри <head>? Попробуйте подключить скрипт в <head> -->
<!-- Для всех кому интересно, мы разберёмся с этим позже, но можете уже почитать как это можно побороть https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event -->
<script src="index.js"></script>
</div>
</body>
</html>