-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsrcset-width.html
More file actions
19 lines (16 loc) · 820 Bytes
/
srcset-width.html
File metadata and controls
19 lines (16 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Using srcset using width descriptors - Responsive images</title>
<meta name="description" content="Learn usage of srcset using width descriptors in responsive images">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/index.css">
</head>
<body>
<h2>Srcset using width descriptors</h2>
<p>Use Chrome device emulator to check the actual image (currentSrc) loaded by the browser on different devices.</p>
<img src="https://ik.imagekit.io/ikmedia/paddy.jpg"
srcset="https://ik.imagekit.io/ikmedia/paddy.jpg?tr=w-300 300w, https://ik.imagekit.io/ikmedia/paddy.jpg?tr=w-600 600w, https://ik.imagekit.io/ikmedia/paddy.jpg?tr=w-900 900w" />
</body>
</html>