-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (37 loc) · 1.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image and Script Example</title>
<style>
body {
font-family: Arial, sans-serif;
}
.large-image {
width: 2000px; /* Image too big for the viewport */
}
.out-of-viewport {
margin-top: 15000px; /* Positioning image far out of the viewport */
}
.spacer {
height: 12000px; /* Large spacer to push content down */
}
</style>
</head>
<body>
<h1>Image and Script Example</h1>
<!-- Image without defined size -->
<img src="./images/sea-star.jpg" alt="Image without defined size">
<!-- Large spacer to push content down -->
<div class="spacer"></div>
<!-- Image out of the viewport for Moto G4 -->
<img src="./images/sea-star.jpg" alt="Image out of viewport" class="out-of-viewport" loading="lazy">
<!-- Image too big for the viewport -->
<img src="./images/sea.jpg" alt="Image too big for viewport" class="large-image">
<!-- Heavy script -->
<script src="./js/heavy-script.js"></script>
<!-- Blocking script -->
<script src="./js/blocking-script.js"></script>
</body>
</html>